Soft or hard thresholding
Y = wthresh(X,SORH,T)
: (if SORH = 's') - soft thresholding
: (if SORH = 'h') - hard thresholding
doing either hard or soft thresholding
// Generate signal and set threshold. y = linspace(-1,1,100); thr = 0.4; // Perform hard thresholding. ythard = wthresh(y,'h',thr); // Perform soft thresholding. ytsoft = wthresh(y,'s',thr); | ![]() | ![]() |
Holger Nahrstaedt