资源简介
小波变换,matlab!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
代码片段和文件信息
clearclc
close all
%%%%%% 小波变换 %%%%%%%%%%%%%%%%
fs=1024;
t=1/fs:1/fs:1;
f1=100;f2=200;f3=300;
s=cos(2*pi*f1*t.*(t>=0&t<0.3))+2*cos(2*pi*f2*t.*(t>=0.3&t<0.8))+3*sin(2*pi*f3*t.*(t>=0.8&t<=1));
%s=cos(2*pi*f1*t);
subplot(211)
plot(ts‘b‘)
title(‘原始单频信号‘)
%%%%%%%%%%%%%%%%%%%%%%% 小波时频图绘制 %%%%%%%%%%%%%%%%%%%%%
wavename=‘cmor4-4‘;%%选用带宽参数和中心频率均为4 的复morlet小波
- 上一篇:matlab编写的地震剖面显示程序
- 下一篇:RNN与LSTM源代码
评论
共有 条评论