fig2jpg

convert fig files in a directory to jpg files

You are now following this Submission

This program converts a set of fig files located in a directory in to jpg files. The program runs through the directory and gets a list of fig file names. These files are then read using the ‘openfig’ command and the output is written using ‘saveas’ command. For example, a file named 'image.fig' will be read and saved as 'image.fig.jpg'.

The only variable that needs to be changed is the figdirectory

Bonus: You can use the parsing directory structure to read any kind of files located in a directory.

Cite As

Ravi Chityala (2026). fig2jpg (https://www.mathworks.com/matlabcentral/fileexchange/20608-fig2jpg), MATLAB Central File Exchange. Retrieved .

Categories

Find more on Printing and Saving in Help Center and MATLAB Answers

General Information

MATLAB Release Compatibility

  • Compatible with any release

Platform Compatibility

  • Windows
  • macOS
  • Linux
Version Published Release Notes Action
1.0.0.0