
function wt = WST(w,t)

% WST -- Soft Thresholding
%  Usage
%    wt = WST(w,t)
%  Inputs
%    w      input coefficients
%    t      threshold
%  Outputs
%    wt     the shrunk values of w
%  Description
%    The w values are soft thresholded with threshold 

wt = (w > t) .* (w - t) + (w < -t) .* (w + t);

