How to plot a function continuously by dragging a slider in AppDesigner

Hi,
I am using AppDesigner and want to plot a function when a slider is changed. I am able to do this, but the plot will only update when I release the slider, and I would like for it to continuously update as I drag the slider. I've seen posts on how to do this in the MATLAB GUI, but not in AppDesigner. Any help would be appreciated!
Thanks,
-Stephen

 채택된 답변

Matt J
Matt J 2022년 6월 5일

1 개 추천

Use the ValueChangingFcn callback instead of the ValueChangedFcn callback. See also this example,

추가 답변 (0개)

카테고리

도움말 센터File Exchange에서 Startup and Shutdown에 대해 자세히 알아보기

제품

릴리스

R2022a

질문:

2022년 6월 5일

답변:

2022년 6월 5일

Community Treasure Hunt

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

Start Hunting!

Translated by