multiple columns to one column

<<
<<
>>Hi I am kinds of practicing the matlab code to edit some data
I am trying to edit the multiple columns of data to one columns like the pictures above.
Anyone help me with this problem??
>>

 Accepted Answer

Azzi Abdelmalek
Azzi Abdelmalek on 14 Jan 2016
Edited: Azzi Abdelmalek on 14 Jan 2016
A=[1 2 3;4 5 6;7 8 9];
B=A(:)
% Or Use reshape function
B=reshape(A,[],1)

More Answers (0)

Categories

Find more on MATLAB in Help Center and File Exchange

Tags

No tags entered yet.

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!