Do we need to have a main file to run guide(gui) in matlab or will it run with functions created by guide?

3 次查看(过去 30 天)
.

回答(1 个)

Tejas
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.

类别

Help CenterFile Exchange 中查找有关 Migrate GUIDE Apps 的更多信息

标签

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by