| MATLAB Function Reference | ![]() |
Syntax
Description
s = urlread('url')
reads the content at a URL into the string s. If the server returns binary data, s will be unreadable.
s = urlread('url',' reads the content at a URL into the string method','params')
s, 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.
[s,status] = urlread(...)
catches any errors and returns the error code.
Download Content from Web Page
Download the contents of the Top Authors list at MATLAB Central File Exchange, then look for a specific author in the results.
s = urlread('http://www.mathworks.com/matlabcentral/fileexchange/.. TopFiles.jsp?type=category&id=&value=TopAuthors'); findstr(s,'My_name')
Download Content from File on FTP Server
The file Moler_1.txt displays in the Command Window.
Download Content from Local File
See Also
| upper | urlwrite | ![]() |