フィルターのクリア

how to see the code in .fig file got from GUIDE

8 ビュー (過去 30 日間)
Yang Shen
Yang Shen 2019 年 7 月 5 日
コメント済み: Yang Shen 2019 年 7 月 5 日
After creating a gui from GUIDE, there will be two files, one is .fig and the other is .m.
I want to know and learn how to get the gui programmatically, so I need to know the code in .fig file. Is this possible?

採用された回答

Image Analyst
Image Analyst 2019 年 7 月 5 日
You don't need to delve into the .fig file because the .m file has everything you need. If you really want to get into the tedious business of writing your own GUI creation code from scratch, you can look at 41-complete-gui-examples.
But I really recommend you use GUIDE or App Designer because for anything but the simplest user interface, you're going to have millions of controls to create, with billions of properties to specify (OK, maybe an exaggeration), and it will be very time consuming and tedious.

その他の回答 (1 件)

Walter Roberson
Walter Roberson 2019 年 7 月 5 日
In all recent MATLAB, there is no code in .fig files.
What will be there is graphics objects, some of which will have callbacks set to property values such as
@(hObject,eventdata)YourGuiNameHere('calculate_Callback',hObject,eventdata,guidata(hObject))
  1 件のコメント
Yang Shen
Yang Shen 2019 年 7 月 5 日
Thank you very much

サインインしてコメントする。

カテゴリ

Help Center および File ExchangeMigrate GUIDE Apps についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by