필터 지우기
필터 지우기

Extract data from figure files not working in 2017a

조회 수: 1 (최근 30일)
SUHANYA M S
SUHANYA M S 2022년 3월 22일
댓글: SUHANYA M S 2022년 3월 23일
I was able to extract data from .fig files until last week using the Figure Property editor and various solutions given on this platform. Today the code I was using doesn't work any more. I've tried many ways and solutions given. Also, looks like the data is not copy-able any more from the Line Property Editor. Has there been some update which disables data access?
Please help!

답변 (1개)

Elif Ozkan
Elif Ozkan 2022년 3월 22일
Hi,
If i understood correctly, you have .fig files and want to have x and y axis data on your workspace. If you don't try the below code, I suggest.
fig = gcf;
axObjs = fig.Graph
dataObjs = axObjs.Graph
x = dataObjs(1).XData % x axis data
y = dataObjs(1).YData % y axis data
  댓글 수: 2
SUHANYA M S
SUHANYA M S 2022년 3월 23일
Thanks for the response! I tried it and got the following error:
No appropriate method, property, or field 'Graph' for class 'matlab.ui.Figure'.
SUHANYA M S
SUHANYA M S 2022년 3월 23일
Please note : The figure was obtained from Simulink block of Wind Turbine.

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Interactive Control and Callbacks에 대해 자세히 알아보기

제품


릴리스

R2017a

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by