Borrar filtros
Borrar filtros

Figures appear on wrong spot in Matlab Livescript

10 visualizaciones (últimos 30 días)
Marcel345614
Marcel345614 el 8 de Jul. de 2021
Respondida: Marcel345614 el 8 de Jul. de 2021
I'm using a Matlab Livescript with different text headers (text sections). In each section, Matlab is supposed to plot some figures (in each section one figure is plotted by an external function, which calculates some variables and plot them).
When I run the script, the figures supposed to be in the 1.section really appear in the 1.section at the beginning of the code run. But when the execution proceeds to the 2.section, the figures of the 1.section appear in the 2.section. The same happens with the figures from the 2.section, etc.
In the end all the figures are in wrong order and appear in the wrong section (but no figure is missing.)
What goes wrong here?

Respuestas (1)

Marcel345614
Marcel345614 el 8 de Jul. de 2021
I tried adding
pause(1)
at the end of each section and this solved the problem.
But stil this is not the most satisfying solution.

Categorías

Más información sobre Graphics Object Programming en Help Center y File Exchange.

Etiquetas

Productos


Versión

R2020b

Community Treasure Hunt

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

Start Hunting!

Translated by