Use a variable from a function in App designer

조회 수: 2 (최근 30일)
Lucas S
Lucas S 2019년 5월 10일
댓글: Stephen23 2019년 5월 10일
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
Stephen23
Stephen23 2019년 5월 10일
Simply return the status as an output argument, just like MATLAB functions do.

댓글을 달려면 로그인하십시오.

답변 (0개)

카테고리

Help CenterFile Exchange에서 Package and Share Apps에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by