Extract data tips values from a plot in app designer
16 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
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 Matrix Indexing 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!