필터 지우기
필터 지우기

How can I plot a continuously changing value from a slider?

조회 수: 43 (최근 30일)
Demetrios Katsaduros
Demetrios Katsaduros 2017년 6월 22일
답변: Mandar Patwardhan 2017년 6월 27일
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?

답변 (1개)

Mandar Patwardhan
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.

카테고리

Help CenterFile Exchange에서 Plot Customization에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by