How do I use uiopen in a class method?

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?

 Respuesta aceptada

Kurt
Kurt el 5 de Oct. de 2022
Movida: dpb el 5 de Oct. de 2022

0 votos

Solution found: I needed a callback function.

Más respuestas (0)

Categorías

Más información sobre Develop Apps Using App Designer en Centro de ayuda y File Exchange.

Etiquetas

Preguntada:

el 4 de Oct. de 2022

Movida:

dpb
el 5 de Oct. de 2022

Community Treasure Hunt

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

Start Hunting!

Translated by