plot to specific iteration steps in while loop

조회 수: 1 (최근 30일)
Leia
Leia 2021년 6월 19일
편집: Jonas 2021년 6월 19일
Suppose that I have an iterative approach code with 50 steps in a while loop. What should I do to see and save the graph for a specific step, for example 8th iteration, instead of seeing the graph of last step?

답변 (1개)

Jonas
Jonas 2021년 6월 19일
편집: Jonas 2021년 6월 19일
if you plot on every step and you want to watch at a specific step you can place an if statement together the uiwait() command
if stepNr==8
uiwait(msgbox(.....))
exportgraphics(....)
end

카테고리

Help CenterFile Exchange에서 Loops and Conditional Statements에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by