The following is the first two lines of my function:
function out = myfun(in)persistent out out = true;
When I call this function, I get the following error:
The PERSISTENT declaration must precede any use of the variable out.
However, the first line of my function is the PERSISTENT declaration.
Best Answer