MATLAB reading in figure matrices

Click For Summary
SUMMARY

The discussion focuses on extracting data from MATLAB .fig files, which are not standard image formats. The user initially attempted to use the imread function, but it failed due to the incompatibility of .fig files with this function. The recommended approach is to use the open function to load the .fig file, which allows access to the graphical content. However, retrieving the original data used for plotting remains uncertain.

PREREQUISITES
  • Familiarity with MATLAB programming environment
  • Understanding of MATLAB figure file formats
  • Basic knowledge of MATLAB functions like open and imread
  • Experience with data visualization in MATLAB
NEXT STEPS
  • Research how to extract data from MATLAB figures using get and findobj functions
  • Learn about saving and exporting data from MATLAB figures
  • Explore MATLAB documentation on figure file handling
  • Investigate alternative methods for converting .fig files to other formats
USEFUL FOR

This discussion is beneficial for MATLAB users, data analysts, and researchers who need to extract and manipulate data from .fig files for analysis or presentation purposes.

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 ·
Replies
2
Views
4K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 1 ·
Replies
1
Views
1K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 4 ·
Replies
4
Views
7K
  • · Replies 3 ·
Replies
3
Views
8K
  • · Replies 2 ·
Replies
2
Views
3K
  • · Replies 18 ·
Replies
18
Views
6K
Replies
3
Views
2K
  • · Replies 2 ·
Replies
2
Views
2K