How to retrieve files from ftp website
Show older comments
I tried mget, urlread, and webread and none seemed to work for me
Any assistance would be appreciated!
Answers (2)
Walter Roberson
on 2 May 2020
1 vote
You create a connection, and then you use cd() and mget() and so on on the object.
4 Comments
Tiger
on 2 May 2020
Image Analyst
on 2 May 2020
Do you need a password to login to the site? If you do it via your web browser does it work?
Tiger
on 2 May 2020
Walter Roberson
on 3 May 2020
obj = ftp('usgodae.org');
cd(obj, '/pub/outgoing/argo/dac/aoml/13857/');
mget(obj, '13857_tech.nc')
close(obj)
Ameer Hamza
on 2 May 2020
0 votes
3 Comments
Tiger
on 2 May 2020
Ameer Hamza
on 2 May 2020
Can you show your code with mget().
Image Analyst
on 2 May 2020
outfilename = websave('13857_tech.nc', 'https://usgodae.org/pub/outgoing/argo/dac/aoml/13857/')
only brings down the HTML document, not the actual file.
Categories
Find more on Web Services 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!