matlab傅里叶变换去噪代码,[转载]MATLAB小波去噪

MATLAB中用wnoise函数测试去噪算法

sqrt_snr=3;

init=231434;

[x,xn]=wnoise(3,11,sqrt_snr,init);

% WNOISE generate

noisy wavelet test data.

% X= WNOISE(FUN,N)

returns values of the test function given by FUN, on a

% 2^N sample of [0,1].

[X,XN] = WNOISE(FUN,N,SQRT_SNR) returns the

% previous vector X

rescaled such that std(x) = SQRT_SNR. The returned

% vector XN contains

the same test vector X corrupted by an additive

Gaussian

% white

noise N(0,1). Then XN has a signal-to-noise ratio of

(SQRT_SNR^2).

% [X,XN] =

WNOISE(FUN,N,SQRT_SNR,INIT) returns previous vectors X and % XN,

but the generator seed is set to INI value.

subplot(3,2,1),plot(x)

title('original

test function')

subplot(3,2,2),plot(xn)

title('noi

你可能感兴趣的:(matlab傅里叶变换去噪代码)