While loop not working in MATLAB app designer callback function
6 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
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
0 Kommentare
Antworten (1)
Jon
am 2 Okt. 2020
Bearbeitet: Jon
am 2 Okt. 2020
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 Kommentare
Jon
am 5 Okt. 2020
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
Siehe auch
Kategorien
Mehr zu Develop Apps Using App Designer finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!