Extracting data from a graph image using 'ginput'

Hello,
I want to extract data using 'ginput' from an attached file.

 채택된 답변

Vishal Gaur
Vishal Gaur 2020년 7월 1일

0 개 추천

Hi Changho LEE,
Firstly, you have to digitize your graph. You can find many methods on File Exchange - https://www.mathworks.com/matlabcentral/fileexchange/?term=digitize&sort=ratings_desc
Then you can use ginput.

댓글 수: 1

Hi Vishal Gaur,
Thanks for the kind answer.
I picked a tool that looks very useful (graph_picker) and tried it myself, but finally I don't know how to extract the data.
If you know how to do it, I would appreciate it.
See attached file for larger image.

댓글을 달려면 로그인하십시오.

추가 답변 (1개)

darova
darova 2020년 7월 2일

0 개 추천

here is an example
x = rand(100,1); % generate some data
y = rand(100,1);
plot(x,y,'.r')
p = ginput(1);
d = pdist2([x y],p); % find combination of distances
[~,ix] = min(d); % index of closest poont
line(x(ix),y(ix),'linestyle','none','marker','o')
text(x(ix), y(ix),sprintf('%0.1f %0.1f',x(ix), y(ix)))

댓글 수: 1

I didn't adopt it, but it helped.
Thank you for your sincere answer.

댓글을 달려면 로그인하십시오.

카테고리

도움말 센터File Exchange에서 Data Exploration에 대해 자세히 알아보기

제품

태그

질문:

2020년 6월 30일

댓글:

2020년 7월 3일

Community Treasure Hunt

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

Start Hunting!

Translated by