xielna 发表于 2009-3-25 21:35

关于stft,大侠指正一下,多谢多谢!!!

clear;
t=0:0.001:1.024-.001;
N=1024;
% y=chirp(t,0,1,350)+chirp(t,350,1,0);
y=exp(j*2*pi*10*(15*t+(1/2)*25/2.56*t.^2));
x=randn(1,N);
z=0.25*x+y;
subplot(411)
plot(t,x);
title('噪声');
% axis();
subplot(412)
plot(t,z);
title('含噪信号');
% axis();
% =tfrstft(z);
subplot(413);
plot(t,y);
title('原信号');
% axis()
subplot(414);
specgram(y,256,1,hanning(256),255);



另:使用tfrstft时,显示??? Undefined function or method 'tfrstft' for input arguments of type 'double'.
是不是说工具箱里没有这个函数,还是其他的问题,恳请多多指教

ChaChing 发表于 2009-3-26 10:46

回复 楼主 xielna 的帖子

使用下式查下有没有这个函数
which tfrstft -all

songzy41 发表于 2009-3-27 09:22

tfrstft函数在MATLAB的时频工具箱中,估计楼主没有安装时频工具箱。

xielna 发表于 2009-3-27 15:05

回复 板凳 songzy41 的帖子

如果已经有了时频工具箱,那如何安装啊,谢谢!!!

xielna 发表于 2009-3-27 15:06

回复 沙发 ChaChing 的帖子

查过了,是没有。。。。。。。。。

cuixuepeng 发表于 2009-9-10 11:02

回复 地板 xielna 的帖子

file->set path->add folder->save->close
页: [1]
查看完整版本: 关于stft,大侠指正一下,多谢多谢!!!