Use a variable from a function in App designer

7 vues (au cours des 30 derniers jours)
Lucas S
Lucas S le 10 Mai 2019
Commenté : Stephen23 le 10 Mai 2019
Hello !
I have a Matlab function testLectureXML() which has a variable n_component.
I have a GUI with an Appdesigner code too which allow user to brose a file and launch the function testLectureXML(file).
If it's a valid file n_component will be > 0 but if it's an empty file or a non valid file n_component will be = 0. And so i would like to use this variable in my App Designer code. As it is a local variable i don't know how to access to its value : testLectureXML(n_component) ? ou testLectureXML().n_component ?
Thanks for helping
  1 commentaire
Stephen23
Stephen23 le 10 Mai 2019
Simply return the status as an output argument, just like MATLAB functions do.

Connectez-vous pour commenter.

Réponses (0)

Catégories

En savoir plus sur Develop Apps Using App Designer dans Help Center et File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by