Do we need to have a main file to run guide(gui) in matlab or will it run with functions created by guide?
2 次查看(过去 30 天)
显示 更早的评论
回答(1 个)
Tejas
2024-3-1
Hello Shruthi,
When you create a GUI using GUIDE, it generates two files: a .FIG file and .M file. The .FIG file holds the layout of the GUI, while the .M file serves as the primary file for the GUI. This .M file contains the initialization code, the callbacks, and any additional functions you may have created.
There is no need for a separate main file, as you can directly execute the GUI by typing the name of the .M file (omitting the .M extension) into the MATLAB Command Line.
For additional details on GUIDE, please consult the following documentation:
In case you are considering transitioning to App Designer, refer to this documentation for guidance: https://www.mathworks.com/matlabcentral/fileexchange/66087-guide-to-app-designer-migration-tool-for-matlab.
Regards,
Tejas.
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Migrate GUIDE Apps 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!