How can I create arrays with different names using loop?
11 ビュー (過去 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!