www.gusucode.com > 给出小波去噪的理论,在MATLAB中实现阈值估算和消噪的函数,并给出例子说明 > code8/signal_denoising4.m
load leleccum; indx = 1:1024; x = leleccum(indx); % 产生含噪信号 init=2055615866; randn('seed',init); nx = x + 18*randn(size(x)); % 将信号nx用小波函数sym5分解到第5层 % 用minimaxi阀值选择对系数进行处理,消除噪声信号 lev = 5; xd = wden(nx,'minimaxi','s','mln',lev,'sym5'); subplot(2,2,1); plot(x); title('原始信号'); subplot(2,2,2); plot(nx); title('含噪信号'); subplot(2,2,3) plot(xd); title('消噪后的信号');