Is there a way to click and drag points on a graph to change it?
5 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
MathWorks Support Team
le 28 Avr 2017
Réponse apportée : MathWorks Support Team
le 15 Mai 2017
I would like to plot a graph and interactive click and drag certain points. Is this possible?
Réponse acceptée
MathWorks Support Team
le 28 Avr 2017
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 commentaires
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur 2-D and 3-D Plots dans Help Center et File Exchange
Produits
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!