how to convert a matrix to a cell array
110 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
John
il 30 Lug 2012
Commentato: william katzianer
il 21 Lug 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 Commenti
Risposta accettata
Andrei Bobrov
il 30 Lug 2012
Modificato: Andrei Bobrov
il 30 Lug 2012
1 Commento
Raphael
il 17 Mag 2013
Dear,
Do you know how to save the cell array created by the function?
Best regards,
Raphael
Più risposte (1)
venkat vasu
il 30 Lug 2012
Modificato: Walter Roberson
il 30 Lug 2012
X= reshape(1:20,2,10)'
C = mat2cell(X, [1,10],[2,1]);
celldisp(C);
Vedere anche
Categorie
Scopri di più su Data Types in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!