How do I use uiopen in a class method?

조회 수: 1 (최근 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 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