Вопрос

Is it somehow possible to get signal data from figure, to save the vector or matrix of the data to the Workspace?

We happend to make a lots of measurements on a real system in school, but ve saved only figures of the measutrement and now we need to use some of the signals from the figure and use them in another figure for comparison.

Это было полезно?

Решение

You can load the figure in Matlab and go to View->Properties, to pull the data out of the plot's properties e.g. for a line graph plot:

enter image description here

You can get at the XData and YData properties and copy/paste the values of out it e.g.

enter image description here

Alternatively, as I had to do once when this method failed, you can save the figure as EPS/postscript and try to pull the data out of the postscript file in a text editor (!)

Лицензировано под: CC-BY-SA с атрибуция
Не связан с StackOverflow
scroll top