how to download a file using matlab ?
7 views (last 30 days)
Sanket Mishra on 7 Jul 2014
“urlread” function returns the contents of a URL in the form of a string : >> filex = 'http://www.mathworks.com/matlabcentral/fileexchange/'; >> fullList = urlread(filex);
You can also provide other options with “urlread” such as if you want to retrieve files from file exchange with in past 7 days that contains the word MATLAB as shown below:
>> filex = sprintf('%s%s',... 'http://www.mathworks.com/matlabcentral/fileexchange/',... '?duration=7&term=MATLAB'); >> recent = urlread(filex);