Products & Services Solutions Academia Support User Community Company

Learn more about MATLAB   

mget - Download file from FTP server

Syntax

mget(f,'filename')
mget(f,'dirname')
mget(...,'target')

Description

mget(f,'filename') retrieves filename from the FTP server f into the MATLAB current directory, where f was created using ftp.

mget(f,'dirname') retrieves the directory dirname and its contents from the FTP server f into the MATLAB current directory, where f was created using ftp. You can use a wildcard (*) in dirname.

mget(...,'target') retrieves the specified items from the FTP server f, where f was created using ftp, into the local directory specified by target, where target is an absolute path name.

Examples

Connect to an FTP server and retrieve the file README into the current MATLAB directory.

ftpobj = ftp('ftp.mathworks.com');
mget(ftpobj, 'README');
close(ftpobj);

See Also

cd( ftp), ftp, mput

  


Recommended Products

Includes the most popular MATLAB recorded presentations with Q&A sessions led by MATLAB experts.

 © 1984-2009- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS