Effacer les filtres
Effacer les filtres

How do I use uiopen in a class method?

2 vues (au cours des 30 derniers jours)
Kurt
Kurt le 4 Oct 2022
Déplacé(e) : dpb le 5 Oct 2022
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?

Réponse acceptée

Kurt
Kurt le 5 Oct 2022
Déplacé(e) : dpb le 5 Oct 2022
Solution found: I needed a callback function.

Plus de réponses (0)

Catégories

En savoir plus sur Develop uifigure-Based Apps dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by