Extract data tips values from a plot in app designer
13 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Mohd Aaquib Khan
am 21 Aug. 2023
Kommentiert: Florian Bidaud
am 22 Aug. 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 Kommentare
Akzeptierte Antwort
Florian Bidaud
am 21 Aug. 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 Kommentare
Florian Bidaud
am 22 Aug. 2023
Nice !
In the live script, you can't.
Otherwise, you should be able to do that with ax.Children.Children
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Graphics Object Programming finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!