How can I run a code in the command window multiple times?
2 ビュー (過去 30 日間)
古いコメントを表示
I need to run my code in the command window in MATLAB multiple times to get an accurate result. I would like to know how to do that.
0 件のコメント
回答 (1 件)
Walter Roberson
2015 年 9 月 28 日
Type in the command multiple times? Type in the command once, and after that press the up-arrow and Return to get it to repeat the previous command? Write a "for" loop in the command window, such as
for K = 1 : 10; YourCommandHere; end
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!