how to convert a matrix to a cell array
169 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
John
am 30 Jul. 2012
Kommentiert: william katzianer
am 21 Jul. 2020
Hi there,
I have a 2x10 matrix. Would anybody know how I could convert it into a 1x10 cell array - so that each cell contains a 2x1 matrix?
I'm new to matlab and would appreciate any help.
Kind Regards
John
0 Kommentare
Akzeptierte Antwort
Andrei Bobrov
am 30 Jul. 2012
Bearbeitet: Andrei Bobrov
am 30 Jul. 2012
1 Kommentar
Raphael
am 17 Mai 2013
Dear,
Do you know how to save the cell array created by the function?
Best regards,
Raphael
Weitere Antworten (1)
venkat vasu
am 30 Jul. 2012
Bearbeitet: Walter Roberson
am 30 Jul. 2012
X= reshape(1:20,2,10)'
C = mat2cell(X, [1,10],[2,1]);
celldisp(C);
1 Kommentar
Siehe auch
Kategorien
Mehr zu Data Types 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!