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??
>>

 Risposta accettata

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

Più risposte (0)

Categorie

Scopri di più su MATLAB in Centro assistenza e File Exchange

Tag

Non è stata ancora inserito alcun tag.

Community Treasure Hunt

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

Start Hunting!

Translated by