⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 ft_delete_file.m

📁 用matlab做的Frequency domain INterferomEter Simulation SoftwarE,在国外网站下的,还在研究中,不会用,有会用的回复我
💻 M
字号:
%---------------------------------------------------------------------  % function []=FT_delete_file(filename)% % deletes a file, USE CAREFULLY!%% filename: string, contains the name of the file%% Part of the SimTools package% Andreas Freise 16.06.08 afreise@googlemail.com%---------------------------------------------------------------------  function []=FT_delete_file(filename)    baseid='FT_delete_file';  if (~isstr(filename))    msgid=[baseid,':checkinarg'];    result='input argument must be a filename';    error(msgid,result);  end    % check whether name contains / or \ so its  % filename including the path    ispath=0;  if (strfind(filename,'\'))    ispath=1;  end    if (strfind(filename,'/'))    ispath=1;  end    if (ispath==0)    filename=['./',filename];  end    if (exist(filename))    disp(sprintf('deleting %s',filename));    delete(filename);  else    disp(sprintf('cannot delete %s, file does not exist',filename));  end    

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -