How to run script without MATLAB asking to press any key to continue

3 ビュー (過去 30 日間)
Erich Hernandez
Erich Hernandez 2020 年 3 月 5 日
コメント済み: Erich Hernandez 2020 年 3 月 5 日
I am using a For loop to plot lines on a figure but the number of iterations that I need to go through is close to 4000. When I run the script it brings up the figure window and plots the line but it stops and at the bottom of the main window it says "Paused: Press any key"
Is there a way I can run this loop autonomously without MATLAB pausing and asking me to press a key to plot the next line?
I tried to rearrange the loop into a while loop in hopes that it wouldn't prompt me to press a key but that didn't work either.

回答 (1 件)

Bhaskar R
Bhaskar R 2020 年 3 月 5 日
Remove pause MATLAB commad from your script
  1 件のコメント
Erich Hernandez
Erich Hernandez 2020 年 3 月 5 日
I'm sorry I forgot to mention that I already tried this. The figure window opens. It prompts me to press a key and when I do nothing happens.

サインインしてコメントする。

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by