Effacer les filtres
Effacer les filtres

loading data before displaying it? is it possible?

2 vues (au cours des 30 derniers jours)
nathanial hapeman
nathanial hapeman le 4 Jan 2012
Hi I am making a simulation of a rocket heading towards a target with things like wind resistance included and when running it the display slows down and keeps slowing down even more until finished.
my question is.... Is it possible to load several lines of code before executing them that way no display lag will ensue?

Réponse acceptée

Walter Roberson
Walter Roberson le 4 Jan 2012
Often when there is a progressive slowdown in displaying, it is because there is a "hold on" in effect that is leading to accumulation of graphics objects.
It is not possible to eliminate display lag in MATLAB.
Display lag can be reduced by re-using graphic objects (updating their properties using set()) instead of replacing them with new objects.
Display lag can be reduced by setting an object (e.g., axis) visibility to 'off', making changes to the object, and then setting the object visible again.

Plus de réponses (0)

Catégories

En savoir plus sur Lighting, Transparency, and Shading dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by