?? 6-7.m
字號:
%例程6-7 方波信號的連續小波變換
% e.g.6-7.m for example6-7;
%test the function of cwt
clear all;
t=0:.01*pi:10*pi;
x=square(t,80); %The duty cycle(占空比) is 80% of the period in which the signal is positive.
X=x+randn(size(x))/10;
subplot(211); plot(t,X);
xlabel('Time t');
axis([0 11*pi -2 2]);
ylabel('Amplitude X');
title('Analyzed singal ')
% Perform continuous wavelet transform by db4 at all integer scales from 1 to 16.
subplot(212);
c=cwt(X,1:16, 'db4','plot');
title('Continuous Wavelet Transform of X');
colormap(pink(64));
xlabel('time (or space) b');
ylabel('Scale');
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -