How to make a 3D Matrix
Mostra commenti meno recenti
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 Commenti
Fangjun Jiang
il 3 Set 2020
define layer
David Hill
il 3 Set 2020
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
il 3 Set 2020
Abdolkarim Mohammadi
il 3 Set 2020
Size = [5,6,3];
M = ones(Size) .* permute([1;2;3],[3,2,1]);
Nicholas Deosaran
il 3 Set 2020
Risposta accettata
Più risposte (0)
Categorie
Scopri di più su Resizing and Reshaping Matrices in Centro assistenza e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!