Extract data tips values from a plot in app designer
10 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Mohd Aaquib Khan
le 21 Août 2023
Commenté : Florian Bidaud
le 22 Août 2023
I want to add the X and Y values of data tips to a matrix. How can I do it?
As an example below, I want to create a 3x2 matrix from the data tip X and Y values
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1460962/image.png)
0 commentaires
Réponse acceptée
Florian Bidaud
le 21 Août 2023
p = plot([0:5],[1:6])
for i = 1:6
datatipsX(i) = p.Children(i).X;
datatipsY(i) = p.Children(i).Y;
end
10 commentaires
Florian Bidaud
le 22 Août 2023
Nice !
In the live script, you can't.
Otherwise, you should be able to do that with ax.Children.Children
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur Matrix Indexing dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!