MATLAB Function Reference Previous page   Next Page
urlwrite

Save contents of URL to file

Syntax

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','method','params') saves the contents of the specified URL to 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.

Examples

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.

View the file in the Help browser.

See Also

urlread


Previous page  urlread vander Next page

© 1994-2005 The MathWorks, Inc.