How do I use uiopen in a class method?

3 ビュー (過去 30 日間)
Kurt
Kurt 2022 年 10 月 4 日
移動済み: dpb 2022 年 10 月 5 日
I am new to Matlab, and trying to build a GUI. In App Designer, I dragged a Menubar to the window and copied the class definition to my app. Now I need to make it open a file using uiopen, I assume. Here is the OpenMenu component:
app.OpenMenu = uimenu(app.FileMenu);
app.OpenMenu.txt = 'Open';
app.OpenFile = uiopen; <---- doesn't work
The error message reads: Error using uiopen: Too many output arguments
What is the proper syntax to use uiopen, and where do I put it?

採用された回答

Kurt
Kurt 2022 年 10 月 5 日
移動済み: dpb 2022 年 10 月 5 日
Solution found: I needed a callback function.

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeDevelop Apps Using App Designer についてさらに検索

タグ


Translated by