Convert FIG to MATLAB code
FIG2M - Generate programmatic GUI M-File from a FIG-File
Version : 1.0
Created : 10/05/2006
Modified: 14/04/2010
Author : Thomas Montagnon (The MathWorks France)
>> outputFile = fig2m(guiName,outputDir,syscolorfig,cb_gen);
guiName -> Name of the Fig-File (absolute or relative path)
outputDir -> Directory where the generated M-File will be saved
syscolorfig -> Use system default background color (true or false)
cb_gen -> Generate callbacks (true or false)
outputFile -> Name of the generated M-File
>> fig2m
If you call the function with no input arguments it will ask you for the parameters.
Cite As
Olivier (2026). Convert FIG to MATLAB code (https://www.mathworks.com/matlabcentral/fileexchange/14340-convert-fig-to-matlab-code), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Platform Compatibility
Windows macOS LinuxCategories
Tags
Acknowledgements
Inspired: Graphical Points Selection, img2curve
Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.
| Version | Published | Release Notes | |
|---|---|---|---|
| 1.1.0.0 | - Change the function name from generate_m_file to fig2m
|
||
| 1.0.0.0 | - Add Support for UserData property
|
