MATLAB: Does WEB work in an application generated by MATLAB Compiler 4.0 (R14)

compilecompileribrowse.dllMATLAB Compilerr14web

I would like to use WEB in a stand-alone application. However, when I compile and run the application, I receive the following error:
Undefined command/function 'ibrowse'.
Error in ==> web at 287
MATLAB:UndefinedFunction

Best Answer

This problem has been fixed in MATLAB Compiler 4.2 (R14SP2). If you are using a previous version, read the following:
We have verified that there is a bug in MATLAB Compiler 4.0 (R14) when generating a stand-alone application that uses WEB.
To work around this issue, do the following:
1. Change your command to the following form:
web('<http://www.mathworks.com','-browser'>)
2. Copy the ibrowse.dll file in the $MATLAB/toolbox/matlab/helptools directory to the $MATLAB/toolbox/compiler/mcr/matlab/helptools directory. Above, $MATLAB represents your root MATLAB directory as returned by the command:
matlabroot
Once you have copied the ibrowse.dll file into the correct directory, recompile your application.