Hi,
Can we have one variable referring to more than one matrix. Like B(1)=[1 2;3 4] and B(2)=[7 8 9;4 5 6]...etc
what is the best way to have many matrices of different sizes and have just one variable referring to all of them through index or any other way.
Thank you

 採用された回答

per isakson
per isakson 2015 年 10 月 16 日
編集済み: per isakson 2015 年 10 月 16 日

0 投票

The answer is Cell Array
B{1}=[1 2;3 4];
B{2}=[7 8 9;4 5 6];

1 件のコメント

rabih Al Ahmadieh
rabih Al Ahmadieh 2015 年 10 月 16 日
Thank you very much

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

その他の回答 (0 件)

カテゴリ

ヘルプ センター および File ExchangeMatrix Indexing についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by