| MATLAB Function Reference | ![]() |
Syntax
urlwrite('url','filename')
f = urlwrite('url','filename')
f = urlwrite('url','filename',method,params)
[f,status] = urlwrite(...)
Description
urlwrite('url','filename')
reads the contents of the specified URL, saving the contents to filename. If you do not specify the path for filename, the file is saved in the MATLAB current directory.
f = urlwrite('url','filename')
reads the contents of the specified URL, saving the contents to filename and assigning filename to f.
f = urlwrite('url',' saves the contents of the specified URL to method','params')
filename, passing information to the server as part of the request where method can be get or post, and params is a cell array of parameter-value pairs.
[f,status] = urlwrite(...)
catches any errors and returns the error code.
| Note If you need to specify a proxy server to connect to the Internet, select File -> Preferences -> Web and enter your proxy server address and port. Use this feature if you have a firewall. |
Save Content from Web Page
Download the files submitted to the MATLAB Central File Exchange, saving the results to samples.html in the MATLAB current directory.
urlwrite('http://www.mathworks.com/matlabcentral/fileexchange /Category.jsp?type=category&id=1','samples.html');
View the file in the Help browser.
See Also
| urlread | vander | ![]() |
© 1994-2005 The MathWorks, Inc.