How do you create a matrix of matrices?

6 visualizaciones (últimos 30 días)
Matlabbber
Matlabbber el 24 de Sept. de 2020
Comentada: Matlabbber el 24 de Sept. de 2020
I have nine 10*10*10 matrices that I am looking to store in one 3*3 matrix (call it A) and am not sure how to do so. I am looking so that if you call say A(3,3) the last 10*10*10 matrix is the result. Please advise

Respuesta aceptada

Matt J
Matt J el 24 de Sept. de 2020
Editada: Matt J el 24 de Sept. de 2020
Put your 10x10x10 arrays in cells
Example:
>> A{3,3}=rand(10,10,10)
A =
3×3 cell array
{0×0 double} {0×0 double} { 0×0 double}
{0×0 double} {0×0 double} { 0×0 double}
{0×0 double} {0×0 double} {10×10×10 double}
  1 comentario
Matlabbber
Matlabbber el 24 de Sept. de 2020
perfect, exactly what I wanted, thank you

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

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

Productos

Community Treasure Hunt

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

Start Hunting!

Translated by