Extracting data from a figure

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 日

0 投票

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 = [];

カテゴリ

ヘルプ センター および File ExchangeCreating, Deleting, and Querying Graphics Objects についてさらに検索

タグ

質問済み:

2021 年 10 月 1 日

回答済み:

Jan
2021 年 10 月 1 日

Community Treasure Hunt

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

Start Hunting!

Translated by