Whats wrong with these two functions in my app?

2 ビュー (過去 30 日間)
Muazma Ali
Muazma Ali 2023 年 5 月 20 日
コメント済み: Muazma Ali 2023 年 5 月 20 日
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 2023 年 5 月 20 日
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 件のコメント
Muazma Ali
Muazma Ali 2023 年 5 月 20 日
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.?
Muazma Ali
Muazma Ali 2023 年 5 月 20 日
@Allen error is supposed to be an output value value from a function



Help Center および File ExchangeDevelop Apps Using App Designer についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by