2D array?
古いコメントを表示
Hi, I have a 3 by 3 matrix X(a,b,c)
I tried to define a submatrix
S = X(3,:,:);
but matlab keeps saying that S is not a 2D array. Why is that so?
Thank you very much.
Added: class(S) apparently is "double" but I don't understand why. How might I make S into a 2D array?
4 件のコメント
Oleg Komarov
2012 年 4 月 15 日
X is a 3D array if you write it in that way: X(a,b,c).
what whos on X returns?
Werner
2012 年 4 月 15 日
Werner
2012 年 4 月 15 日
Walter Roberson
2012 年 4 月 15 日
Werner, X(3,:,:) is a 1 x something x something array. See IA's solution.
採用された回答
その他の回答 (0 件)
カテゴリ
ヘルプ センター および File Exchange で Matrix Indexing についてさらに検索
製品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!