📄 basename.m
字号:
%
% Function to find out the basename and extension
% ex. If a filename is speech.dat
% then the basename is 'speech'
% and the extention is 'dat'
function [ bname, xtent] = basename(s)
len=length(s);
for i=1:len,
if s(i) == '.';
break;
end
end
bname=s(1:i-1);
if exist('i') & i == 1,
bname='';
xtent=s(i+1:len);
elseif exist('i') & i == len
bname=s;
xtent='';
else
bname=s(1:i-1);
xtent=s(i+1:len);
end
%bname = lower(bname);
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -