MATLAB: Do I receive a warning when I use the MODEL command in Simulink 6.2 (R14SP2)

fevallinmodmdlapimodelsimulationSimulink Control Designtype

When I execute the following command at the MATLAB prompt:
f14
feval('f14',[],[],[],'lincompile');
[sizes,x0,xstr] = f14;
I receive the following warning message:
Warning: Model 'f14' is currently compiled for 'linmod' simulation type. The current compilation needs to be terminated before the model can be compiled for the speficed simulation type 'mdlapi'.
However, the warning is not produced while running the model using Simulink 6.1 (R14SP1).

Best Answer

This bug has been fixed in Release 2006b (R2006b). For previous product releases, read below for any possible workarounds:
We have verified that there is a change in the behavior in Simulink 6.2 (R14SP2) in the way that the above warning is produced when using MODEL command.
To workaround the issue, you can safely ignore the warning or edit the line containing the MODEL command to include the command's last ('flag') argument as shown below:
f14
feval('f14',[],[],[],'lincompile');
[sizes,x0,xstr] = f14([],[],[],'compile');