Extracting data from a figure

1 Ansicht (letzte 30 Tage)
Diana Dawoud
Diana Dawoud am 1 Okt. 2021
Beantwortet: Jan am 1 Okt. 2021
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 Kommentare
Diana Dawoud
Diana Dawoud am 1 Okt. 2021
Jan
Jan am 1 Okt. 2021
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?

Melden Sie sich an, um zu kommentieren.

Antworten (1)

Jan
Jan am 1 Okt. 2021
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 = [];

Kategorien

Mehr zu Graphics Object Identification finden Sie in Help Center und File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by