MATLAB Function Reference | ![]() ![]() |
Point Help browser or Web browser at 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
weburl
web url -browser
stat = web('url', '-browser
')
Description
web
displays the MATLAB Help browser, loads the file or Web site specified by url
url
(Uniform Resource Locator) in it, and returns the status to the Command Window. Generally, url
specifies a local file or a Web site on the Internet. You must specify the full URL
. For example, use http://www.mathworks.com
instead of www.mathworks.com
.
web url -
displays the default Web browser for your system, loads the file or Web site specified by browser
url
(Uniform Resource Locator) 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.
stat = web('url', '-
is the function form and returns the status of browser
')
web
to the variable stat
.
Value of status |
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
![]() | wavwrite | weekday | ![]() |