Is there a way to click and drag points on a graph to change it?
조회 수: 5 (최근 30일)
이전 댓글 표시
MathWorks Support Team
2017년 4월 28일
답변: MathWorks Support Team
2017년 5월 15일
I would like to plot a graph and interactive click and drag certain points. Is this possible?
채택된 답변
MathWorks Support Team
2017년 4월 28일
Unfortunately, there are not default functions or tools that have this functionality as of R2017a. Here is some code to be able to do this. Attached is a function where you can click and drag points on the graph plotted. Try the following:
x = 0:.1:8*pi;
y = sin(x);
dragpoints(x,y,0,30,-1,1);
댓글 수: 0
추가 답변 (0개)
참고 항목
제품
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!