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!