How to create interactive plot in matlab

Hello Everyone,
I am looking to design an interactive plot for a function f(x,y). I would like to add a slider for x and y that would change the plot in realtime. I am also open to do this using GUI. Let me know what might be the better approach to this problem. Plot should be f vs x or f vs y.

답변 (2개)

Geoff Hayes
Geoff Hayes 2016년 5월 22일

0 개 추천

khush - I think the best approach is to use GUIDE to create your GUI with an axes and two slider (one for each of x and y). The callback for the slider could then be used to update the function as drawn on your axes. See http://www.mathworks.com/videos/creating-a-gui-with-guide-68979.html to get you started on creating your GUI.

댓글 수: 1

Eric Sargent
Eric Sargent 2020년 5월 21일
The GUIDE design environment will be removed in a future release of MATLAB, I recommend using App Designer instead.

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

Eric Sargent
Eric Sargent 2020년 5월 21일

0 개 추천

App Designer is the recommended enviroment for building apps in MATLAB. To get started, you can watch this video: https://www.mathworks.com/videos/app-designer-overview-1510748719083.html

카테고리

도움말 센터File Exchange에서 Migrate GUIDE Apps에 대해 자세히 알아보기

태그

질문:

khu
2016년 5월 21일

댓글:

2020년 5월 21일

Community Treasure Hunt

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

Start Hunting!

Translated by