how to extract data from 2D graph?
8 次查看(过去 30 天)
显示 更早的评论
Hi,
I got 2D graph like attacment. how to extract the data from .jpg? i do convert it in .fig but i have error:
"No appropriate method, property, or field 'ZData' for class 'matlab.graphics.primitive.Image'.
Error in test123 (line 12)
z = dataObjs(1).ZData"
Thanks
0 个评论
采纳的回答
KSSV
2019-1-7
See this file exchange: https://in.mathworks.com/matlabcentral/fileexchange/7173-grabit
If you have .fig,,,you can get the handles of the figure and the handles have XData and YData.
更多回答(1 个)
madhan ravi
2019-1-7
https://www.mathworks.com/matlabcentral/answers/100687-how-do-i-extract-data-from-matlab-figures#answer_110036 - save your graph as .fig instead of .jpg ("No appropriate method, property, or field 'ZData' for class 'matlab.graphics.primitive.Image'. )
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Graphics Object Identification 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!