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 Center および File ExchangeResizing and Reshaping Matrices についてさらに検索

製品

Community Treasure Hunt

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

Start Hunting!

Translated by