필터 지우기
필터 지우기

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

조회 수: 1 (최근 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