Extracting data from a figure
1 次查看(过去 30 天)
显示 更早的评论
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 个评论
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
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 = [];
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Interactive Control and Callbacks 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!