How to redraw 3D figure having controls without disturbing controls?

2 次查看(过去 30 天)
Hi folks,
I have a 3D figure on which I placed some popup menus. The plot is a function of whatever the user pulls down from the popups, so how do I redraw the whole figure to update it (using a function), without destroying the figure, or creating many duplicate figures?
Thank you for helping me.
Dave

采纳的回答

Walter Roberson
Walter Roberson 2016-5-31
Once you have a surf or plot3, to draw the new plot, update the XData, YData, ZData properties of the graphics object.
Or at most use cla() to clear the axes. Do not use clf().
  1 个评论
David Pesetsky
David Pesetsky 2016-5-31
Thanks. cla() was easier since there's too much complicated data on the figure, and it's easier to recalculate the whole thing anyway.

请先登录,再进行评论。

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Migrate GUIDE Apps 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by