It appears that MATLAB will never execute the indicated statement. Typically, Code Analyzer displays this message if a statement is:
Preceded by a break
,
continue
, or return call
Preceded by an error
,
throw
, rethrow
, or
throwAsCaller
call
Preceded by an exit
or
quit
call
Inserted between a switch
program control
statement and the first case
keyword
Controlled by a conditional expression that is coded such that it
always returns a value of true
or always returns
a value of false
. For example, in the following
code, Code Analyzer returns this warning on the
d=10
statement because
flag
in the if
statement
always returns a value of true
:
flag = true;
if flag
d = 11;
else
d = 10;
end
Check to see if this is a typographical error or other simple mistake and fix it. If the message is incorrect, suppress it as described in Adjust Code Analyzer Message Indicators and Messages.