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];

추가 답변 (0개)

카테고리

도움말 센터File Exchange에서 Matrix Indexing에 대해 자세히 알아보기

질문:

2015년 10월 16일

댓글:

2015년 10월 16일

Community Treasure Hunt

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

Start Hunting!

Translated by