loading data before displaying it? is it possible?

1 次查看(过去 30 天)
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?

采纳的回答

Walter Roberson
Walter Roberson 2012-1-4
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.

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Lighting, Transparency, and Shading 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by