Borrar filtros
Borrar filtros

plot to specific iteration steps in while loop

2 visualizaciones (últimos 30 días)
Leia
Leia el 19 de Jun. de 2021
Editada: Jonas el 19 de Jun. de 2021
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?

Respuestas (1)

Jonas
Jonas el 19 de Jun. de 2021
Editada: Jonas el 19 de Jun. de 2021
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

Categorías

Más información sobre 2-D and 3-D Plots en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by