Extracting data points (with specific coordinates) from plot
显示 更早的评论
Hi,
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?
回答(1 个)
For example,
Y=40+0.04*linspace(-1,1,10)
data=10*(1:numel(Y))
data_Extracted = data(abs(Y-40)<=0.01)
类别
在 帮助中心 和 File Exchange 中查找有关 Surface and Mesh Plots 的更多信息
产品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!