fileinfo.m

来自「matlab源代码,适用于开发研究,带来很好的学习效果.」· M 代码 · 共 13 行

M
13
字号
function fileinfo(file)
[pathstr,name,ext,versn] = fileparts(file);
if name=='fileinfo'
disp('This is the target file')
else
disp('This is not the target file')
end

if ext==strcat('.','xls')
disp('This is a excel file')
else 
disp('This is not a excel file')
end

⌨️ 快捷键说明

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