checkUseIteratorVariableNameOutsideLoop

Checks if loop iterator variables are used outside the for-loop. Using a loop iterator variable name outside the for-loop might indicate a programming error.

Possilbe fault scenarios are:

  • When the loop is not entered, results might be unexpected.
  • MATLAB Coder documentation warns for possible runtime issues, see documentation.

Exemption tag: %@ok<UIVOL>