|MATLAB Function Reference|
Connect to FTP server, creating FTP object
f = ftp('host','username','password')
connects to the FTP server,
host, creating the FTP object,
f. If a username and password are not required for an anonymous connection, only use the
host argument. Specify an alternate port by separating it from
host using a colon (:). After running
ftp, perform file operation functions on the FTP object,
f, using methods such as
cd and others listed under "See Also." When you're finished using the server, run
close (ftp) to close the connection.
ftp function is based on code from the Apache Jakarta Project.
Connect Without Username
ftp.mathworks.com, which does not require a username or password. Assign the resulting FTP object to
tmw. You can access this FTP site to experiment with the FTP functions.
Connect to Specified Port
To connect to port 34, type
Connect with Username
ftp.testsite.com and assign the resulting FTP object to
© 1994-2005 The MathWorks, Inc.