声振论坛

 找回密码
 我要加入

QQ登录

只需一步,快速开始

查看: 1794|回复: 5

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

[复制链接]
发表于 2009-3-25 21:35 | 显示全部楼层 |阅读模式

马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。

您需要 登录 才可以下载或查看,没有账号?我要加入

x
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([0 1.05 -4 4]);
subplot(412)
plot(t,z);
title('含噪信号');
% axis([0 1.05 2 2]);
% [tfr,t,f]=tfrstft(z);
subplot(413);
plot(t,y);
title('原信号');
% axis([0 1.05 -1.1 1.1])
subplot(414);
specgram(y,256,1,hanning(256),255);



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

使用道具 举报

发表于 2009-3-26 10:46 | 显示全部楼层

回复 楼主 xielna 的帖子

使用下式查下有没有这个函数
which tfrstft -all
发表于 2009-3-27 09:22 | 显示全部楼层
tfrstft函数在MATLAB的时频工具箱中,估计楼主没有安装时频工具箱。
 楼主| 发表于 2009-3-27 15:05 | 显示全部楼层

回复 板凳 songzy41 的帖子

如果已经有了时频工具箱,那如何安装啊,谢谢!!!
 楼主| 发表于 2009-3-27 15:06 | 显示全部楼层

回复 沙发 ChaChing 的帖子

查过了,是没有。。。。。。。。。
发表于 2009-9-10 11:02 | 显示全部楼层

回复 地板 xielna 的帖子

file->set path->add folder->save->close
您需要登录后才可以回帖 登录 | 我要加入

本版积分规则

QQ|小黑屋|Archiver|手机版|联系我们|声振论坛

GMT+8, 2024-5-4 05:53 , Processed in 0.208929 second(s), 17 queries , Gzip On.

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

快速回复 返回顶部 返回列表