Download files from FTP server
FTP object created by ftp.
String enclosed in single quotation marks that specifies either a file name or a folder name. Can include a wildcard character (*).
String enclosed in single quotation marks that specifies the absolute or relative path of the local folder to contain the downloaded contents.
Connect to an FTP server and retrieve the file README into the current MATLAB folder:
mw = ftp('ftp.mathworks.com'); mget(mw, 'README'); close(mw);