how to extract data from 2D graph?

7 ビュー (過去 30 日間)
Safwana Razak
Safwana Razak 2019 年 1 月 7 日
コメント済み: Safwana Razak 2019 年 1 月 8 日
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 untitled.jpg

採用された回答

KSSV
KSSV 2019 年 1 月 7 日
If you have .fig,,,you can get the handles of the figure and the handles have XData and YData.
  1 件のコメント
Safwana Razak
Safwana Razak 2019 年 1 月 8 日
thank you so much

サインインしてコメントする。

その他の回答 (1 件)

madhan ravi
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'. )
  1 件のコメント
Safwana Razak
Safwana Razak 2019 年 1 月 8 日
If i get my graph from report format like pdf or word or .jpg? when i convert into .fig i got the error mgs:
"No appropriate method, property, or field 'ZData' for class 'matlab.graphics.primitive.Image'.
Error in test123 (line 12)
z = dataObjs(1).ZData"

サインインしてコメントする。

カテゴリ

Help Center および File ExchangeAnnotations についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by