Is there a way to click and drag points on a graph to change it?

5 ビュー (過去 30 日間)
MathWorks Support Team
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
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 件)

カテゴリ

Help Center および File Exchange2-D and 3-D Plots についてさらに検索

タグ

タグが未入力です。

製品

Community Treasure Hunt

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

Start Hunting!

Translated by