cell to matrix conversion
显示 更早的评论
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?
采纳的回答
更多回答(1 个)
Wayne King
2013-5-29
编辑:Wayne King
2013-5-29
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 个评论
John
2013-5-29
John
2013-5-29
Azzi Abdelmalek
2013-5-29
Then just use
X{1}
X{2}
X{3}
X{4}
John
2013-5-29
类别
在 帮助中心 和 File Exchange 中查找有关 Loops and Conditional Statements 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!