In the attached example M-Lint displays a message in line 38 for the colon:
ann = an(r,:);
As "an" is not defined before, but will be written out of the Simulink model to the current workspace "an" will be known and the program will run as expected.
If I comment out the function line and execute the code as a script this message does not occur.
Best Answer