How do you create a matrix of matrices?

조회 수: 6 (최근 30일)
Matlabbber
Matlabbber 2020년 9월 24일
댓글: Matlabbber 2020년 9월 24일
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

채택된 답변

Matt J
Matt J 2020년 9월 24일
편집: Matt J 2020년 9월 24일
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
Matlabbber
Matlabbber 2020년 9월 24일
perfect, exactly what I wanted, thank you

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Resizing and Reshaping Matrices에 대해 자세히 알아보기

제품

Community Treasure Hunt

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

Start Hunting!

Translated by