How can I plot a continuously changing value from a slider?
17 次查看(过去 30 天)
显示 更早的评论
For a simple equation such as y=x^2, the variable x will be the value obtained from the slider. Upon pressing a push button to generate a simple plot, as the user is sliding the value on the slider, how can this changing value be updating in the already formed plot?
0 个评论
回答(1 个)
Mandar Patwardhan
2017-6-27
Use the following documentation as a reference to build a plot with a slider. Drag the slider to see the change in the plot. This particular example uses callbacks to achieve the change in the existing plot.
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Plot Customization 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!