cell to matrix conversion
Ältere Kommentare anzeigen
I have following cell matrix X(1x4):
[] [] [1,2,3;1,3,4] [1,2,3,4;1,3,4,2]
how do i split them into four seperate matrices?
Akzeptierte Antwort
Weitere Antworten (1)
Wayne King
am 29 Mai 2013
Bearbeitet: Wayne King
am 29 Mai 2013
X = {[] [] [1,2,3;1,3,4] [1,2,3,4;1,3,4,2]};
[A,B,C,D] = deal(X{:});
Note that A and B are empty as expected.
4 Kommentare
John
am 29 Mai 2013
John
am 29 Mai 2013
Azzi Abdelmalek
am 29 Mai 2013
Then just use
X{1}
X{2}
X{3}
X{4}
John
am 29 Mai 2013
Kategorien
Mehr zu Loops and Conditional Statements finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!