Extract data tips values from a plot in app designer
16 views (last 30 days)
Show older comments
Mohd Aaquib Khan
on 21 Aug 2023
Commented: Florian Bidaud
on 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
0 Comments
Accepted Answer
Florian Bidaud
on 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 Comments
Florian Bidaud
on 22 Aug 2023
Nice !
In the live script, you can't.
Otherwise, you should be able to do that with ax.Children.Children
More Answers (0)
See Also
Categories
Find more on Matrix Indexing in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!