Hello everyone,

I have an A matrix as

`A=[a b ; c d ; e f ; g h] `

and want to get B matrix as

`B=[a ; b; c; d; e; f; g; h] `

using A matrix. How can I code it? Thanks

Skip to content# MATLAB: Replace the elements of a matrix

###### Related Question

matrix array

Hello everyone,

I have an A matrix as

`A=[a b ; c d ; e f ; g h] `

and want to get B matrix as

`B=[a ; b; c; d; e; f; g; h] `

using A matrix. How can I code it? Thanks

- Reshape a matrix in different way
- Elemental matrix multiplication [NxN] and [1xn] into [NxNxn]
- Creating certain amount of new rows from each row in a matrix
- Read data from file
- How to eliminate for-loop
- How to construct this matrix without loop
- Compare two arrays (intersection) and create new array with output columns, but with repetitions

## Best Answer