The program has at least one keyword that is missing a required
end
statement. Code Analyzer attempts to identify and print the last keyword for
which there is no end
statement. Although there is definitely
a missing end
statement, it is possible that the indicated
keyword is not the one that needs to be fixed. Code Analyzer cannot always
accurately determine which keyword is missing the end
statement.
Determine which keyword is missing an end
statement, and
supply it. If it is not obvious where the missing end
statement is needed, insert an end
statement at the end of
the program. Then, look for new messages indicating that there are keywords not
aligned with their end
statement.
For a list of MATLAB keywords, type iskeyword
in the
Command Window.