Code covered by the BSD License  

Highlights from
Convert FIG to MATLAB code

from Convert FIG to MATLAB code by Thomas Montagnon
Generate programmatic GUI MATLAB File from a FIG-File

GENERATE_M_FILE - Release Notes

GENERATE_M_FILE - Release Notes

  • Version : 1.0
  • Created : 10/05/2006
  • Modified: 14/04/2010
  • Author : Thomas Montagnon (The MathWorks France)

Contents

What's new?

V1.0

  • Add support for uitoolbar, uipushtool and uitoggletool

V0.9

  • Add support for uitable controls

V0.8

  • Change the function name from generate_m_file to fig2m

V0.7

  • Bug corrected for generation of String property value containing new line and ' characters.

V0.5

  • Add support for UserData property

V0.3

  • Only the properties that are different from their default values are set
  • New function call with no arguments. The function will ask you for them
  • Support the "Use default system background color" feature
  • Support the automatic Callback Generation

V0.2

  • The function now sets only the properties that differ from their default values
  • Now you can call the function with no arguments. The input parameters will be asked to you
  • The function supports the "Use default system background color" feature

Function Call

>> 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 -> Boolean value: true if you want to generate callbacks
  • outputFile -> Name of the generated M-File

>> fig2m

  • If you call the function with no input arguments it will ask you for the parameters.

Future versions

  • Adding support for other callbacks / controls

Contact us at files@mathworks.com