The way extrinsic functions are treated changed in Simulink 7.2 (R2007a)
In Simulink 7.1 (R2007b) functions not supported by Embedded MATLAB are automatically considered extrinsic and a warning similar to the following is displayed:
Function 'waitbar' implicitly resolved in the MATLAB workspace. This feature is deprecated. Please declare this function extrinsic using eml.extrinsic('waitbar'), or call it using feval.
Iin Simulink 7.2 (R2008a) and newer releases, the unsupported functions must be explicitly declared as extrinsic. Undeclared functions cause the following error:
The function 'waitbar' is not supported by Embedded MATLAB for code generation. See the documentation for eml.extrinsic to learn how you can use this function in simulation.
In Simulink 7.1 (R2007b) the simulation continues after the warning while in Simulink 7.2 (R2008a) (and later versions) you cannot continue after the error.
If you want to use the appropriate MATLAB function (for example WAITBAR) for simulation purpose, you need to use the command
eml.extrinsic('waitbar');
in the Embedded MATLAB function block.
Best Answer