how can i put multiple matrices into a struct?

13 ビュー (過去 30 日間)
Mio Rinnovo
Mio Rinnovo 2019 年 11 月 2 日
コメント済み: Mio Rinnovo 2019 年 11 月 2 日
Can add multiple matrices into one struct?

採用された回答

David Hill
David Hill 2019 年 11 月 2 日
A and B are maxtrixes of any size.
m=struct('matrix',{A,B});
struct field is 'matrix', so m(1).matrix == A and m(2).matrix == B.
  1 件のコメント
Mio Rinnovo
Mio Rinnovo 2019 年 11 月 2 日
Thanks!
So plugging in m(1).matrix in the command window will show me A, but what if A is also a struct with 2 matrices in them?

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeStructures についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by