⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 wavelet001.m

📁 内燃机转子仿真
💻 M
字号:
% Load the original 1-D signal, decompose, reconstruct details in 
% original time and plot.
% Load the signal. 
load leleccum; s = leleccum;

% Decompose the signal s at level 5 using the wavelet db3. 
w = 'db3'; 
[c,l] = wavedec(s,5,w);

% Reconstruct the details using the decomposition structure. 
for i = 1:5
   D(i,:) = wrcoef('d',c,l,w,i);
end
% Avoid edge effects by suppressing edge values and plot. 
tt = 1+100:length(s)-100; 
subplot(6,1,1); plot(tt,s(tt),'r'); 
title('Electrical Signal and Details'); 
for i = 1:5, subplot(6,1,i+1); plot(tt,D(5-i+1,tt),'g'); end

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -