Documentation

This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English verison of the page.

Note: This page has been translated by MathWorks. Please click here
To view all translated materals including this page, select Japan from the country navigator on the bottom of this page.

close

Class: FTP

Close connection to FTP server

Syntax

close(ftpobj)

Description

close(ftpobj) closes the connection to the FTP server.

Tips

  • If you do not run close at the end of your session, the connection either times out automatically or terminates when you exit MATLAB®.

  • After calling close, calling any other FTP method on the same object automatically reopens the connection.

  • close does not return any output to indicate success or failure.

Input Arguments

ftpobj

FTP object created by ftp.

Examples

Connect to the National Geophysical Data Center (NGDC) FTP server, and then disconnect:

ngdc = ftp('ftp.ngdc.noaa.gov');
close(ngdc)

FTP service courtesy of the NGDC. See NGDC Privacy Policy, Disclaimer, and Copyright for NGDC terms of service.

See Also

Introduced before R2006a

Was this topic helpful?