How to extract multiple 'y' axis values with respect to 'x' axis from .fig file
1 次查看(过去 30 天)
显示 更早的评论
采纳的回答
Chunru
2022-5-24
编辑:Chunru
2022-5-25
The figure is likely produced using fplot. The appropriate object handle is of type "ImplicitFunctionLine".
f=openfig('imp.fig');
f.Children.Children
h=findobj(f,'type','ImplicitFunctionLine')
% Retrieve the data
x=get(h,'XData');
y=get(h,'YData');
% Retrieve the function (you can obtain the data by evaluating the
% function)
fcn = h.Function
xr = f.Children.Children.XRange
yr = f.Children.Children.YRange
figure
plot(x, y)
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Line Plots 的更多信息
产品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!