wtresh wavelet toolbox

wavelet toolbox >> wavelet toolbox > wtresh

wtresh

Soft or hard thresholding

Calling Sequence

Y = wthresh(X,SORH,T)

Parameters

X
: input vector
SORH
: ('s' or 'h') soft or hard thresholding
T

: Treshhold

Y
: output vector

Description

wtresh performs either soft- or hard tresholding on X.

Examples

y = linspace(-1,1,100); 
thr = 0.4;

// Perform hard thresholding. 
ythard = wthresh(y,'h',thr);

// Perform soft thresholding. 
ytsoft = wthresh(y,'s',thr);

subplot(311); plot(y,y);title("original signal");
subplot(312); plot(y,ythard);title("Hardtresholded signal");
subplot(313); plot(y,ytsoft);title("Softtresholded signal");

Authors

Holger Nahrstaedt

See Also

wtresh wavelet toolbox