How to make a 3D Matrix
Mostrar comentarios más antiguos
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 comentarios
Fangjun Jiang
el 3 de Sept. de 2020
define layer
David Hill
el 3 de Sept. de 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
el 3 de Sept. de 2020
Abdolkarim Mohammadi
el 3 de Sept. de 2020
Size = [5,6,3];
M = ones(Size) .* permute([1;2;3],[3,2,1]);
Nicholas Deosaran
el 3 de Sept. de 2020
Respuesta aceptada
Más respuestas (0)
Categorías
Más información sobre Creating and Concatenating Matrices en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!