MATLAB Function Reference    
web

Point Help browser or Web browser to file or Web site

Graphical Interface

As an alternative to the web function, type the URL in the page title field at the top of the display pane in the Help browser.

Syntax

Description

web url displays the MATLAB Help browser, loads the file or Web site specified by url (the URL) in it, and returns the status to the Command Window. Generally, url specifies a local file, for example an HTML file, or a Web site on the Internet.

web url -browser displays the default Web browser for your system, loads the file or Web site specified by url (the URL) in it, and returns the status to the Command Window. Generally, url specifies a local file or a Web site on the Internet. The URL can be in any form that the browser supports. On Windows, the default Web browser is determined by the operating system. On UNIX, the Web browser used is specified in docopt, in the doccmd string. If your system default browser is Netscape, start Netscape before issuing the web function with the -browser argument to avoid possible problems.

stat = web('url', '-browser') is the function form and returns the status of web to the variable stat.

Value of stat
Description
0
Browser was found and launched.
1
Browser was not found.
2
Browser was found but could not be launched.

Examples

web file:/disk/dir1/dir2/foo.html points the Help 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 the Help browser.

web www.mathworks.com -browser loads The MathWorks Web page into your system's default Web browser, for example, Netscape Navigator.

Use web mailto:email_address to use your default e-mail application to send a message to email_address.

See Also

doc, docopt, helpbrowser


  wavwrite weekday