Extract data tips values from a plot in app designer
13 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
Mohd Aaquib Khan
il 21 Ago 2023
Commentato: Florian Bidaud
il 22 Ago 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 Commenti
Risposta accettata
Florian Bidaud
il 21 Ago 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 Commenti
Florian Bidaud
il 22 Ago 2023
Nice !
In the live script, you can't.
Otherwise, you should be able to do that with ax.Children.Children
Più risposte (0)
Vedere anche
Categorie
Scopri di più su Graphics Object Programming in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!