Error function

TitleDo not use the built-in error.
Severity level1
DescriptionDo not use the built-in function error.
During code generation the error function is ignored, so the execution just continues, with unexptected behaviour. Note that MEX-based validations can be misleading, as generating code for the MEX-target, still includes calls to the error function (as the MEX runs within MATLAB).