How can I create arrays with different names using loop?
10 次查看(过去 30 天)
显示 更早的评论
I want to create n=1:56 arrays with names a(n), and each array contein random number.
thank you.
0 个评论
回答(1 个)
James Tursa
2022-3-31
编辑:James Tursa
2022-3-31
Don't embed numbering into the variable names. This will make the variables hard to use downstream in your code. Use cell arrays or multidimension arrays etc. instead. See this discussion:
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Loops and Conditional Statements 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!