END misunderstood in MATALAB APP
2 views (last 30 days)
Stefano Massardi on 26 Mar 2021
I have a matlab APP with a part like this:
The problem is that the environment automatically thinks that the "END" in dato(end,6) is the one terminating the IF structure. As a consequence, the next end is taken by another thing in the code. This also happens in a while cycle where a statement like:
vector = vector2(end,:)
and that END is taken as the end for the while cycle.
The same code in a script works correctly obviously. Is this an issue of the app?