23.06.2015 Views

MATLAB Programming

MATLAB Programming

MATLAB Programming

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Exchanging Files over the Internet<br />

you see the contents of pub, rather than the top level contents as displayed<br />

previously when you ran dir(tmw).<br />

5 Use mget to retrieve any of the files from the current directory on the FTP<br />

server to the <strong>MATLAB</strong> current directory:<br />

mget(tmw,'filename');<br />

6 Close the FTP connection using close.<br />

close(tmw);<br />

Summary of FTP Functions<br />

The following table lists the available FTP functions. For more information,<br />

refer to the applicable reference pages.<br />

Function<br />

ascii<br />

binary<br />

cd (ftp)<br />

delete (ftp)<br />

dir (ftp)<br />

close (ftp)<br />

ftp<br />

mget<br />

mkdir (ftp)<br />

mput (ftp)<br />

rename<br />

rmdir (ftp)<br />

Description<br />

Set FTP transfer type to ASCII (convert new lines).<br />

Set FTP transfer type to binary (transfer verbatim,<br />

default).<br />

Change current directory on FTP server.<br />

Delete file on FTP server.<br />

List contents of directory on FTP server.<br />

Close connection with FTP server.<br />

Connect to FTP server, creating an FTP object.<br />

Download file from FTP site.<br />

Create new directory on FTP server.<br />

Upload file or directory to FTP server.<br />

Rename file on FTP server.<br />

Remove directory on FTP server.<br />

6-123

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!