Guide To Object
Editor's Note: This file was selected as MATLAB Central Pick of the Week
Convert your GUIDE GUIs to Matlab objects.
Usage Instructions
==================
1. Export the GUIDE UI to a Matlab file
2. Run GuideToObject('guideFile_export.m', 'output.Class', debugFlag)
Parameters:
guideFile - name of the exported UI file
outputClass - name (including namespace) of class to create
debugFlag - true to print callback names in base class
3. GuideToObject creates two files on the first run, a base class
(output.ClassBase) and a template implementation class
(output.Class). Subsequent runs only update the base class, leaving
any existing implementation untouched.
4. Implement required functionality in the implementation class,
callbacks are raised in response to user actions in the UI
5. Any updates to the GUIDE file can be incorporated by running
outputClass.Recreate()
Cite As
Neil Hopcroft (2024). Guide To Object (https://www.mathworks.com/matlabcentral/fileexchange/48797-guide-to-object), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Platform Compatibility
Windows macOS LinuxCategories
Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.
Version | Published | Release Notes | |
---|---|---|---|
1.0.0.0 |