我的邮箱是:littlemaple75@sohu.com
回复 #7 happy 的帖子
老大,我需要端点检测程序啊,着急用啊,看到了千万与我联系,好吗?
我QQ:240383680
麻烦一下
老大,我把这段程序拷到 MATLAB里也不能运行呀,为啥呀,提示我:??? Undefined command/function 'enframe'.
Error in ==> vad at 23
tmp1= enframe(x(1:end-1), FrameLen, FrameInc); 谁能帮帮忙,怎么改一下可以运行,我的是matlab7.0
[ 本帖最后由 花如月 于 2007-12-17 19:08 编辑 ]
回复 #22 liningliuyong 的帖子
看看版规,注意用词。那个应该是个子函数,主任没有贴出来想必是在另外的地方可以找到的。 不好意思啊,我刚来论坛的,不太清楚规矩。
我找了好多地方,整个论坛,包括网上其他地方也都找了,但是都是这段程序,我刚接触MATLAB,不知道怎么改,可以指点一下么,需要加点什么才能看到运行结果? 有可能发的时候遗漏了这个函数 这里给出enframe函数:
function f=enframe(x,win,inc)
%ENFRAME split signal up into (overlapping) frames: one per row. F=(X,WIN,INC)
%
% F = ENFRAME(X,LEN) splits the vector X up into
% frames. Each frame is of length LEN and occupies
% one row of the output matrix. The last few frames of X
% will be ignored if its length is not divisible by LEN.
% It is an error if X is shorter than LEN.
%
% F = ENFRAME(X,LEN,INC) has frames beginning at increments of INC
% The centre of frame I is X((I-1)*INC+(LEN+1)/2) for I=1,2,...
% The number of frames is fix((length(X)-LEN+INC)/INC)
%
% F = ENFRAME(X,WINDOW) or ENFRAME(X,WINDOW,INC) multiplies
% each frame by WINDOW(:)
% Copyright (C) Mike Brookes 1997
%
% Last modified Tue May 12 13:42:01 1998
%
% VOICEBOX home page: http://www.ee.ic.ac.uk/hp/staff/dmb/voicebox/voicebox.html
%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% This program is free software; you can redistribute it and/or modify
% it under the terms of the GNU General Public License as published by
% the Free Software Foundation; either version 2 of the License, or
% (at your option) any later version.
%
% This program is distributed in the hope that it will be useful,
% but WITHOUT ANY WARRANTY; without even the implied warranty of
% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.See the
% GNU General Public License for more details.
%
% You can obtain a copy of the GNU General Public License from
% ftp://prep.ai.mit.edu/pub/gnu/COPYING-2.0 or by writing to
% Free Software Foundation, Inc.,675 Mass Ave, Cambridge, MA 02139, USA.
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
nx=length(x);
nwin=length(win);
if (nwin == 1)
len = win;
else
len = nwin;
end
if (nargin < 3)
inc = len;
end
nf = fix((nx-len+inc)/inc);
f=zeros(nf,len);
indf= inc*(0:(nf-1)).';
inds = (1:len);
f(:) = x(indf(:,ones(1,len))+inds(ones(nf,1),:));
if (nwin > 1)
w = win(:)';
f = f .* w(ones(nf,1),:);
end 真是太谢谢了,可以运行了,谢谢!
这个论坛挺好,速度快,人也都不错:victory: :victory: :victory:
回复 #26 songzy41 的帖子
songzy41 老师总是能带来惊喜:handshake以后多来啊
真的太谢谢你了 的救星
我找了好久了,难啊 .很难遇到你这种好人的了,
毕业设计完成后请你喝酒,能来不.
[ 本帖最后由 eight 于 2008-3-12 10:56 编辑 ] :@)