Whats wrong with these two functions in my app?

hi
I am now attaching an app here , app3 , that includes 2 callback functions. I think there is something wrong in the first of them: function start analysis , it is a callback function. I have tried to find out but I dont understand why the app not continuing to the second choice led by error ==1. I ran my real program and got the expected results but with this app I am not doing so

답변 (1개)

Allen
Allen 2023년 5월 20일

0 개 추천

The application property (error) that you are tyring to use is being created upon the start of the application, but you have failed to assign it a value anywhere within your code. Thus app.error is empty and will never be equal to 1 without a mechanism change its value.

댓글 수: 3

@Allen Hi! So it doesnt help if I give a value to a error in a function that I am using in the app..?
what I am trying to say is that I gave it a value in a function that I used after the if statement.
Do I have to initialize it in th app.?
@Allen error is supposed to be an output value value from a function

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

카테고리

도움말 센터File Exchange에서 Develop Apps Using App Designer에 대해 자세히 알아보기

질문:

2023년 5월 20일

댓글:

2023년 5월 20일

Community Treasure Hunt

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

Start Hunting!

Translated by