필터 지우기
필터 지우기

Creating an "update" button in GUI

조회 수: 3 (최근 30일)
Jared
Jared 2011년 11월 2일
I have a few check boxes and toggles which will affect the display of a plot I create with a GUI.
If I create a plot, then the user selects some of the check boxes to change the display, I think I need an update button to cause the data to be re-plotted using the new settings. Is there some command to, on the pressing of the "update button", jump back to the plot section of code?

채택된 답변

Walter Roberson
Walter Roberson 2011년 11월 2일
No, there is not. In MATLAB, there is no way to jump back to anything.
What you should do is put the plotting code in to a function, and call that function from your regular code to do the initial plot. Then, in the callback for your Update button, call the plotting function.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 2-D and 3-D Plots에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by