readftp.m
来自「matlab实用教程」· M 代码 · 共 7 行
M
7 行
tmw=ftp('ftp.mathworks.com'); %连接FTP server
cd(tmw,'pub'); % 切换到pub路径下,需要有tmw参数
cd(tmw,'pentium'); % 从pub路径切换到pentium目录
dir(tmw) ; % 列出pentium目录下内容
mget(tmw,'Moler_1.txt'); % 将Moler_1.txt文件导入到MATLAB当前路径
close(tmw); % 关闭FTP路径连接
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?