While loop not working in MATLAB app designer callback function

조회 수: 6 (최근 30일)
Shivam Dubey
Shivam Dubey 2020년 10월 2일
댓글: Jon 2020년 10월 5일
Hello there,
I making a simple app that reads numerical data inputed by the user and outputs arrays of data as result of some formula. In one of the callback functions, I have a while loop which, after the conditions is fulfilled, gives an array as a result. The function works correctly in the editor but in the app designer, it fails to recognise all the variables that are in the while loop.
Can anyone suggest what would be the possible reason behind this?
Thanks

답변 (1개)

Jon
Jon 2020년 10월 2일
편집: Jon 2020년 10월 2일
You probably have a scoping issue. Shared values are typically stored variable names such as app.myVariable
To give any more specific help you would need to provide the code you are using and the detailed error messages that you are receiving
  댓글 수: 7
Shivam Dubey
Shivam Dubey 2020년 10월 2일
Please ignore that I have already corrected that but it still fails to recognise y_FAW basically the outcome of the while loop.
Jon
Jon 2020년 10월 5일
If you need more help please post the full error message you are now getting and even better attach enough code to reproduce the problem

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

카테고리

Help CenterFile Exchange에서 Develop 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