Digitize(extract data) from a matlab plot

I have a figure generated by matlab plot(t,y). It is a time-series. The figure is in a Microsoft Word file. And the figure can be saved as PNG, TIF etc(but no FIG file format). Data is quite big and it's impossible to digitize it by a digitizer. I wonder if there's any way to extract data x and y. Thanks

1 comentario

Jan
Jan el 30 de Dic. de 2012
Please explain the format of the available data exactly. "A figure copied to word" does not allow to draw enough conclusions.
Why is it impossible to use a digitizer?

Iniciar sesión para comentar.

Respuestas (1)

Image Analyst
Image Analyst el 30 de Dic. de 2012

0 votos

Try this: http://www.mathworks.com/matlabcentral/fileexchange/36904-matlab-script-for-digitizing-a-published-graph "This function lets users digitize a published graph that is saved as a image e.g. jpeg."

3 comentarios

Eclipse
Eclipse el 31 de Dic. de 2012
Thank you but there are too many points, I would like to find a tool to automatically restore y at time t.(say t=0:0.001:10). I think it is possible if the figure is in .fig format. Is there any way to transform a graphic( I think it is a vector graphic, as it can zoom in and out without loss of information) in Microsoft Word to .fig file?
Eclipse
Eclipse el 31 de Dic. de 2012
Thank you but there are too many points, I would like to find a tool to automatically restore y at time t.(say t=0:0.001:10). I think it is possible if the figure is in .fig format. Is there any way to transform a graphic( I think it is a vector graphic, as it can zoom in and out without loss of information) in Microsoft Word to .fig file?
Can you "get()" the xdata and ydata properties from the fig?
xValues = get(hFig, 'xdata');
Does that work? Or maybe from the axes or line series objects.
xValues = get(hAxes, 'xdata');
hLine = findobj(hAxes, 'line');
xValues = get(hLine, 'xdata');
You might have to experiment around - just like I'd have to because I don't do this all the time so I don't know off the top of my head. But if you have the fig file, why don't you have the arrays that went into creating it????? You should have them. Can you modify whatever code made the fig file to save the x and y data out to a mat file?

Iniciar sesión para comentar.

Categorías

Más información sobre Creating, Deleting, and Querying Graphics Objects en Centro de ayuda y File Exchange.

Etiquetas

Preguntada:

el 30 de Dic. de 2012

Community Treasure Hunt

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

Start Hunting!

Translated by