How to I create variables with different names in the workspace using for loop?
3 ビュー (過去 30 日間)
古いコメントを表示
Hi. Good Day.
May I please request ways to create different named variables in the workspace using the for loop function?
Thanks!
採用された回答
Walter Roberson
2022 年 7 月 5 日
Please read http://www.mathworks.com/matlabcentral/answers/304528-tutorial-why-variables-should-not-be-named-dynamically-eval for information about why we strongly recommend against creating variable names dynamically.
0 件のコメント
その他の回答 (1 件)
埃博拉酱
2022 年 7 月 7 日
You're too new to MATLAB to write any actual code.
Learn your first course on https://matlabacademy.mathworks.com/ before doing any coding. Don't take MATLAB as a piece of cake that you can easily handle in one hour. If you don't have time to study hard, you might as well ask the experts around you.
参考
カテゴリ
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!