Running a GUI requires opening the .fig file in GUIDE

旧巷老猫 提交于 2019-11-29 11:56:25

When you create a GUI using GUIDE, it should create both a .fig file and a .m file. To run it, you should run the .m file, rather than double-clicking the .fig file.

The .fig file just contains static information about the layout of the GUI - there is nothing executable in it that would initialise handles and so on.

Well, always run .m file if you want to check your code and if you want to edit GUI go through guide command. If you open .fig file you'll get a file which you can't execute and you can't able to analyze that. corresponding .m file will have respective functions for your GUI.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!