why does my simulation slow down after a while ?

im using simmechanics to model a robot , the simulation slows down after about 70 seconds, i'm visualizing the model, i think its cumulative data, probably the visual simulation is the problem , any idea how to clear unwanted variables while simulating the model ? and thank you

回答(1 个)

How are you preforming the visualization? If you keep adding new images to an axes, without calling cla in between, then it will slow down because all those images get stored in the axes. Subsequent images do not replace the image in there.

1 个评论

visualization is done using simmechanics visualization feature, i don't add images, i only provide .stl files or it uses default ellipsoids, if i don't use the visualization feature the simulation is very fast.

请先登录,再进行评论。

类别

帮助中心File Exchange 中查找有关 Applications 的更多信息

提问:

2013-3-24

Community Treasure Hunt

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

Start Hunting!

Translated by