MATLAB MATLAB reading in figure matrices

AI Thread Summary
To extract data from .fig files, using the command "open('figure1.fig')" is recommended, as it successfully loads the figure. However, retrieving the original data used to create the plots may not be straightforward, and the discussion does not provide a definitive method for accessing that underlying data.
Klandhee
Messages
7
Reaction score
0
Hi, I have a bunch of images saved as .fig and I need to obtain the data in these files. I tried something as simple as
image1 = imread('figure1.fig');
but it does not recognize the format. If anyone could help me out that would be greatly appreciated, thanks!
 
Physics news on Phys.org
imread won't work because a .fig is not exactly an image file.Try:

"open('figure1.fig')"

That will load up the entire image. I don't know if it's possible to get the original data used to plot the graphs though.
 

Similar threads

Replies
2
Views
3K
Replies
1
Views
2K
Replies
3
Views
7K
Replies
18
Views
6K
Replies
2
Views
2K
Replies
4
Views
2K
Back
Top