close all;
IS=0.25;
wlen=200
inc=80;
fle='ceshi.wav';
xx=xx-mean(xx);
x=xx/max(abs(xx));
N=length(x);
time=(0:N-1)/fs;
SNR=10;
x=Gnoisegen(x,SNR);
wnd=hamming(wlen);
overlap=wlen-inc;
NIS=fix((IS*fs-wlen)/inc+1);
y=enframe(signal,wad,inc);
fn=size(y,2);
frameTime=frame2time(fn,wlen,inc,fs);
for k=2:fn
u=y(:,k);
ru=xcorr(u);
Ru(k)=max(ru);
end
Rum=multimidfilter(Ru,10);
Rum=Rum/max(Rum);
thredth=max(Rum(1:NIS));
T1=1.1*thredth;
T2=1.3*thredth;
[voiceseg,vsl,SF,NF]=vad_param1D(Rum,T1,T2);
subplot 311;plot(time,x,'k');
title('语音波形');
ylabel('幅值');axis([0 max(time) -1 1]);
subplot 312;plot(time,signal,'k');
title('带噪声语音波形(信噪比'num2strSNR'dB)');
ylabel('幅值');axis([0 max(time) -1 1]);
subplot 313;plot(frameTime,Rum,'k');
title('短时谱熵');axis([0 max(time) 0 0.2]);
xlabel('时间/s');ylabel('幅值');
line([0,frameTime(fn)],[T1,T1],'color','k','LineStlye','- -');
line([0,frameTime(fn)],[T2,T2],'color','k','LineStyle','-');
for k=1:vsl
nx1=voiceseg(k).begin;nx2=voiceseg(k).end;
fprintf('%4 %4 %4\n',k,nx1,nx2);
subplot 311;
line([frameTime(nx1) frameTime(nx1)],[-1,1],'color','k','LineStyle','-');
line([frameTime(nx2) frameTime(nx2)],[-1,1],'color','k','LineStyle','- -');
程序运行之后出现这样的错误:
Error: File: zixiangguan.m Line: 33 Column: 30
Unexpected MATLAB expression.

求大神帮忙解答!!!真的是大谢啊啊啊啊
IS=0.25;
wlen=200
inc=80;
fle='ceshi.wav';
xx=xx-mean(xx);
x=xx/max(abs(xx));
N=length(x);
time=(0:N-1)/fs;
SNR=10;
x=Gnoisegen(x,SNR);
wnd=hamming(wlen);
overlap=wlen-inc;
NIS=fix((IS*fs-wlen)/inc+1);
y=enframe(signal,wad,inc);
fn=size(y,2);
frameTime=frame2time(fn,wlen,inc,fs);
for k=2:fn
u=y(:,k);
ru=xcorr(u);
Ru(k)=max(ru);
end
Rum=multimidfilter(Ru,10);
Rum=Rum/max(Rum);
thredth=max(Rum(1:NIS));
T1=1.1*thredth;
T2=1.3*thredth;
[voiceseg,vsl,SF,NF]=vad_param1D(Rum,T1,T2);
subplot 311;plot(time,x,'k');
title('语音波形');
ylabel('幅值');axis([0 max(time) -1 1]);
subplot 312;plot(time,signal,'k');
title('带噪声语音波形(信噪比'num2strSNR'dB)');
ylabel('幅值');axis([0 max(time) -1 1]);
subplot 313;plot(frameTime,Rum,'k');
title('短时谱熵');axis([0 max(time) 0 0.2]);
xlabel('时间/s');ylabel('幅值');
line([0,frameTime(fn)],[T1,T1],'color','k','LineStlye','- -');
line([0,frameTime(fn)],[T2,T2],'color','k','LineStyle','-');
for k=1:vsl
nx1=voiceseg(k).begin;nx2=voiceseg(k).end;
fprintf('%4 %4 %4\n',k,nx1,nx2);
subplot 311;
line([frameTime(nx1) frameTime(nx1)],[-1,1],'color','k','LineStyle','-');
line([frameTime(nx2) frameTime(nx2)],[-1,1],'color','k','LineStyle','- -');
程序运行之后出现这样的错误:
Error: File: zixiangguan.m Line: 33 Column: 30
Unexpected MATLAB expression.

