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
. Specify the path for filename
or it 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.
Save Content from Web Page
Download the files submitted for Signal Processing, Communications, and DSP from 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 | usejava | ![]() |