MATLAB evaluates the expression and, if the evaluation yields a logical true or nonzero result, ... When nesting if s, each if must be paired with a matching end .
nf.nci.org.au