How i can form Array List
16 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
SAMEER ahamed
am 17 Feb. 2014
Kommentiert: SAMEER ahamed
am 22 Feb. 2014
Hi,
I am new for mat-lab , how i can want to make Array List form ? below example
for int i=1:20
X = 1;
Y=2;
X1 =4;
Y2 =5;
X2 =6;
Y2 =7;
end
Output i would like to store like : matrix =[[1,2],[4,5],[6,7]];
0 Kommentare
Akzeptierte Antwort
Walter Roberson
am 17 Feb. 2014
MATLAB does not have array lists exactly like that. It has cell arrays which are similar.
matrix = {[X Y]; [X1 Y1]; [X2 Y2]}
7 Kommentare
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Logical finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!