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

 Respuesta aceptada

per isakson
per isakson el 16 de Oct. de 2015
Editada: per isakson el 16 de Oct. de 2015
The answer is Cell Array
B{1}=[1 2;3 4];
B{2}=[7 8 9;4 5 6];

Más respuestas (0)

Categorías

Preguntada:

el 16 de Oct. de 2015

Comentada:

el 16 de Oct. de 2015

Community Treasure Hunt

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

Start Hunting!

Translated by