how to extract data from 2D graph?

조회 수: 9 (최근 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개)

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 CenterFile Exchange에서 Annotations에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by