Extracting data from a figure

조회 수: 1 (최근 30일)
Diana Dawoud
Diana Dawoud 2021년 10월 1일
답변: Jan 2021년 10월 1일
I have a figure and I'm using the following code line to extract the information from the figure (the figure is open), however, when I run the code D is an empty matrix
D=get(gca,'Children')
  댓글 수: 2
Diana Dawoud
Diana Dawoud 2021년 10월 1일
Jan
Jan 2021년 10월 1일
Please post such messages as text. Is this the complete message?
What does "I have a figure" exactly mean? A fig file or the code which creates the figure?

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

답변 (1개)

Jan
Jan 2021년 10월 1일
The error message looks like you are opening a .fig file but you do not have the required SizeChangeFcn. Then you can redefine the SizeChangeFcn at first:
FigH = openfig('File.fig');
FigH.SizeChangeFcn = [];

카테고리

Help CenterFile Exchange에서 Graphics Object Identification에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by