How to retrieve files from ftp website
Ältere Kommentare anzeigen
I tried mget, urlread, and webread and none seemed to work for me
Any assistance would be appreciated!
Antworten (2)
Walter Roberson
am 2 Mai 2020
1 Stimme
You create a connection, and then you use cd() and mget() and so on on the object.
4 Kommentare
Tiger
am 2 Mai 2020
Image Analyst
am 2 Mai 2020
Do you need a password to login to the site? If you do it via your web browser does it work?
Tiger
am 2 Mai 2020
Walter Roberson
am 3 Mai 2020
obj = ftp('usgodae.org');
cd(obj, '/pub/outgoing/argo/dac/aoml/13857/');
mget(obj, '13857_tech.nc')
close(obj)
Ameer Hamza
am 2 Mai 2020
0 Stimmen
3 Kommentare
Tiger
am 2 Mai 2020
Ameer Hamza
am 2 Mai 2020
Can you show your code with mget().
Image Analyst
am 2 Mai 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.
Kategorien
Mehr zu Web Services finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!