how can i make an array of variables with different sizes?

조회 수: 5 (최근 30일)
marco mendez
marco mendez 2019년 9월 24일
댓글: marco mendez 2019년 9월 26일
Hi!
I want to put into an array or vector or cell or something, variables with differents sizes like for example '12x102 double' for the first term. Then for the second term a '11x98 double' variable. Thus, I'll have (if we call 'MOD' the array) MOD[1]=the variable witch size is '12x102 double' and for MOD[2] the one of '11x98 double'.
Thanks!
  댓글 수: 3
Adam Danz
Adam Danz 2019년 9월 24일
What per isakson said...
Here's an example
MOD{1} = rand(12,102);
MOD{2} = rand(11,98);
marco mendez
marco mendez 2019년 9월 26일
thanks to both of you, it has helped me.

댓글을 달려면 로그인하십시오.

답변 (0개)

카테고리

Help CenterFile Exchange에서 Matrix Indexing에 대해 자세히 알아보기

제품


릴리스

R2019a

Community Treasure Hunt

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

Start Hunting!

Translated by