Extracting data points (with specific coordinates) from plot
2 views (last 30 days)
Show older comments
I have plotted a large number of data. Now from this plot, I want to extract data points that their Y coordinate is either 40 or very close to 40 (say closer than 0.01).
Anyone know how I can do that?
Matt J on 23 Jan 2023
Edited: Matt J on 23 Jan 2023
data_Extracted = data(abs(Y-40)<=0.01)
Find more on Surface and Mesh Plots 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!