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

 Akzeptierte Antwort

per isakson
per isakson am 16 Okt. 2015
Bearbeitet: per isakson am 16 Okt. 2015

0 Stimmen

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

Weitere Antworten (0)

Kategorien

Community Treasure Hunt

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

Start Hunting!

Translated by