Suppos I have:

`a = [3;3;5;8;2;1;8;1;5];b = 2`

I want matrix c to be:

`c = [3 2;3 2;5 2;8 2;2 2;1 2;8 2;1 2;5 2]`

second column of matrix c is just repeated b

Skip to content# MATLAB: Creating a matrix by some other matrices

###### Related Question

arraymatrix

Suppos I have:

`a = [3;3;5;8;2;1;8;1;5];b = 2`

I want matrix c to be:

`c = [3 2;3 2;5 2;8 2;2 2;1 2;8 2;1 2;5 2]`

second column of matrix c is just repeated b

- How to create a new matrix with some known rows
- Replacing row number with value
- How to take elements of one matrix as power of the elements of second
- I have a matrix 6*2 as following (UNDER THE PLOT), after plotting them i get what you see in the figure. so how can i extract data points in new matrix with fixed increment inYaxis(for example of value 0.1 increment )without change Zvalue for curves
- Hi everyone, can you help me to solve following program
- Creating matrix with other matrix
- How to combine two matrix

## Best Answer