Borrar filtros
Borrar filtros

Rebuilding a 3D matrix

1 visualización (últimos 30 días)
Ashfaq Ahmed
Ashfaq Ahmed el 27 de Feb. de 2023
Comentada: Ashfaq Ahmed el 27 de Feb. de 2023
Hi everyone!
I am doing an operation where I will have to follow these algorithm steps. Can anyone please let me know how to perform this?
Any feedback will be grately appreaciated!

Respuesta aceptada

Stephen23
Stephen23 el 27 de Feb. de 2023
Editada: Stephen23 el 27 de Feb. de 2023
A1 = A(:,:,[2,5,7]);
A2 = A(:,:,[1,6,10]);
A3 = A(:,:,[3,4,8,9]);
.. change values
B = nan(10,10,10);
B(:,:,[2,5,7]) = A1;
B(:,:,[1,6,10]) = A2;
B(:,:,[3,4,8,9]) = A3;

Más respuestas (0)

Categorías

Más información sobre Matrices and Arrays en Help Center y File Exchange.

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by