obtain information from saved figure

I have a figure saved as 'Temp.pdf'. I would like to obtain the data from this figure within a new session. Some information about the figure: It is a 1x43824 vector showing measurements over several years. Now I want to load the information from this graph into a new session in order to compare with another dataset. How is this possible?

답변 (1개)

Jan
Jan 2012년 3월 31일

0 개 추천

No, you cannot get the data from a PDF file. If the figure is saved as .fig file, obtaining the data is easy.

댓글 수: 2

Richard
Richard 2012년 3월 31일
How easy is easy? What would have to do if I had a .fig file?
Jan
Jan 2012년 3월 31일
There is no way to convert a PDF to a FIG file. A Matlab figure can be saved using HGSAVE as a FIG file. Reloading this file and using FINDOBJ to determine the handle of the wanted object allows to get the coordinates by:
X = get(ObjectHandle, 'XData'); Y = get(ObjectHandle, 'YData');
This has been discussed repeatedly in this forum. You can find this e.g. by letting Google search for 'XData' in this forum.
However, it would be easier to create a meaningful answer, if you explain what you have and what you want explicitly.

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

카테고리

도움말 센터File Exchange에서 Printing and Saving에 대해 자세히 알아보기

태그

질문:

2012년 3월 31일

Community Treasure Hunt

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

Start Hunting!

Translated by