how can i make an array of variables with different sizes?
8 次查看(过去 30 天)
显示 更早的评论
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
2019-9-24
What per isakson said...
Here's an example
MOD{1} = rand(12,102);
MOD{2} = rand(11,98);
回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Matrix Indexing 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!