| MATLAB Function Reference | Search  Help Desk |
| web | Examples See Also |
Point Web browser at file or Web site
Syntax
web url
stat = web(...)
Description
web url
opens a Web browser and loads the file or Web site specified by url (Uniform Resource Locator). url can be in any form your browser supports. Generally, url specifies a local file or a Web site on the Internet.
stat = web(...)
returns the status of web to the variable stat.| Value of stat |
Description of web Status |
0 |
Successful execution. |
1 |
Browser was not found. |
2 |
Browser was found but could not be launched. |
Remarks
On UNIX, the Web browser used is specified in thedocopt M-file, in the doccmd string.
On Windows, the Web browser is determined by the operating system.
Examples
web file:/disk/dir1/dir2/foo.html points the browser to the file foo.html. If the file is on the MATLAB path, web(['file:' which('foo.html')]) also works.
web http://www.mathworks.com loads The MathWorks Web page into your browser.
Use web mailto:email_address to send e-mail to another site.
See Also
doc, docopt