MATLAB: Is there an error in the “Building a Project” section of the MATLAB Builder for Excel 1.2.4 (R14SP2) documentation

MATLAB Builder EX

I am using the MATLAB Compiler to generate a COM object that can be used from Microsoft Excel. I am following the documentation for the same:
web([docroot,'/toolbox/matlabxl/starting4.html#5624'])
which states that the command for creating an Excel-compatible COM object should be :
mcc -B cexcel:mycomponent,myclass,1.0 foo.m bar.m
But when I use this from the MATLAB command prompt I receive the following error:
??? mcc -B cexcel:mycomponent,myclass,1.0 foo.m bar.m
|
Error: Unexpected MATLAB expression.

Best Answer

This enhancement has been incorporated in Release 2006a (R2006a). For previous product releases, read below for any possible workarounds:
There is an error in the documentation for MATLAB Builder for Excel 1.2.4 (R14SP2) in the Building a Project ->Command Line Interface section.
The documentation should read as follows:
You can also use the cexcel bundle file to simplify the command line input, as follows:
mcc -B 'cexcel:mycomponent,myclass,1.0' foo.m bar.m