| Products & Services | Solutions | Academia | Support | User Community | Company |
| Download Product Updates | | | Get Pricing | | | Trial Software |
| Documentation → MATLAB |
| Contents | Index |
| Learn more about MATLAB |
Note docopt produces a warning and will be removed in a future version. Use Web preferences instead, by selecting File > Web > Preferences. For more information, see Web Preferences. |
docopt
doccmd = docopt
docopt displays the Web browser used with the MATLAB software when running on UNIX[1] platforms, except for the Apple Macintosh platform, with the default being netscape (for the Netscape Navigator® application). For UNIX platforms (other than the Macintosh platform), you can modify the docopt.m file to specify the Web browser that MATLAB uses. The Web browser is used with the web function and its -browser option. It is also used for links to external Web sites from the Help.
doccmd = docopt returns a string containing the command that web -browser uses to invoke a Web browser.
To change the browser, edit the docopt.m file and change line 51. (To locate docopt.m, run which docopt.)
Here is an example of changing docopt.m. Initially, the file contains:
50 elseif isunix % UNIX 51 % doccmd = '';
Remove the comment symbol in line 51. Inside the quotation marks, enter the command that starts your Web browser, and save the file. For example,
51 doccmd = 'mozilla';
specifies Mozilla® as the Web browser MATLAB uses.
doc, edit, helpbrowser, web
[1] UNIX is a registered trademark of The Open Group in the United States and other countries.
![]() | doc | docsearch | ![]() |

Includes the most popular MATLAB recorded presentations with Q&A sessions led by MATLAB experts.
| © 1984-2009- The MathWorks, Inc. - Site Help - Patents - Trademarks - Privacy Policy - Preventing Piracy - RSS |