Clear Filters
Clear Filters

how to download a file using matlab ?

3 views (last 30 days)
I have to download a file present in file exchange. how to download it thro matlab using the command urlread

Answers (1)

Sanket Mishra
Sanket Mishra on 7 Jul 2014
“urlread” function returns the contents of a URL in the form of a string : >> filex = ''; >> 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',... '',... '?duration=7&term=MATLAB'); >> recent = urlread(filex);


Find more on Downloads in Help Center and File Exchange



Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!