How to make a 3D Matrix
古いコメントを表示
How to make a 3D Matrix that contains all ones in the first layer, all twos in the second layer and all threes in the third layer?
5 件のコメント
Fangjun Jiang
2020 年 9 月 3 日
define layer
David Hill
2020 年 9 月 3 日
Do you mean something like:
f(1:5,1:5,1)=1;
f(1:5,1:5,2)=2;
f(1:5,1:5,3)=3;
Nicholas Deosaran
2020 年 9 月 3 日
Abdolkarim Mohammadi
2020 年 9 月 3 日
Size = [5,6,3];
M = ones(Size) .* permute([1;2;3],[3,2,1]);
Nicholas Deosaran
2020 年 9 月 3 日
採用された回答
その他の回答 (0 件)
カテゴリ
ヘルプ センター および File Exchange で Resizing and Reshaping Matrices についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!