Next/continue pushbutton in gui matlab

조회 수: 1 (최근 30일)
Jessie Bessel
Jessie Bessel 2020년 3월 24일
답변: Ameer Hamza 2020년 3월 24일
Hi, I have an simple interface with one figure and one push button. When i push the button i want to plot a graph in the figure. But after, i want to push the button again and plot another graph, and after that, another one.
What function should I use in the callback of the pushbutton to make that?
Thank you!
  댓글 수: 3
Jessie Bessel
Jessie Bessel 2020년 3월 24일
Let's say that first when i push the button, I plot sin(x). When i push again, i want to plot cos(x). When i push again I want to plot 1+x and so on...
Geoff Hayes
Geoff Hayes 2020년 3월 24일
Denis - do you have a list of functions that you want to cycle through? How do you know what is the next function to plot?

댓글을 달려면 로그인하십시오.

답변 (1개)

Ameer Hamza
Ameer Hamza 2020년 3월 24일
See the attached app to see an example of how to plot using the pushbutton callback.

카테고리

Help CenterFile Exchange에서 Graphics Performance에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by