MATLAB: How to close a web browser in MATLAB 7.5 (R2007b)

browsercloseclosegroupcomcom.mathworksMATLABweb

I have opened a web browser using the WEB function:
web www.mathworks.com
How do I close the web browser from the MATLAB command window?

Best Answer

This command will close the web browser that has been opened with the WEB function in MATLAB 7.5 (R2007b):
web www.mathworks.com
com.mathworks.mlservices.MatlabDesktopServices.getDesktop.closeGroup('Web Browser')