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

📄 basename.m

📁 这是一个用于语音信号处理的工具箱
💻 M
字号:
%
% Function to find out the basename and extension
% example: If a filename is speech.dat
%     then the basename is 'speech'
%     and the extention is 'dat'
% The basename.m file used here differs slightly from that used in the
% other software.  In this case the last line is deleted, i.e.,
% the line bname = lower(bname)is not used here.;
% 
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 + -