라이선스가 부여된 사용자만 번역 문서를 볼 수 있습니다. 번역 문서를 보려면 로그인하십시오.

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 MathWorks® FTP server, and then disconnect:

mw=ftp('ftp.mathworks.com');
close(mw)

See Also

Was this topic helpful?