How to create interactive plot in matlab
331 views (last 30 days)
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.
Geoff Hayes on 22 May 2016
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.
Eric Sargent on 21 May 2020