How to extract multiple 'y' axis values with respect to 'x' axis from .fig file
    조회 수: 4 (최근 30일)
  
       이전 댓글 표시
    
hi guys,
i use this simple code to extract the 'y' axis values with respect to 'x' axis values, but it didn't work.
there are lots of individual lines in 'y' axis, that's why this code doesn't work.
Thanks in advance.
댓글 수: 0
채택된 답변
  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개)
참고 항목
제품
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!



