Find links on a website

3 views (last 30 days)
Chad Greene
Chad Greene on 26 Jun 2012
Hi,
I'm using Matlab to download each of the files found here: <ftp://podaac-ftp.jpl.nasa.gov/allData/grace/L2/CSR/RL05/>. Is there a way to automatically populate a list of each of these .gz files so I don't have to enter each file name manually?
Thanks! Chad

Accepted Answer

Chad Greene
Chad Greene on 27 Jun 2012
I figured it out:
urls=urlread('ftp://podaac-ftp.jpl.nasa.gov/allData/grace/L2/CSR/RL05/');
urldata = textscan(urls,'%s %f %s %s %f %s %f %s %s');
urllist = urldata{9};

More Answers (0)

Tags

Community Treasure Hunt

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

Start Hunting!