ivan@155: % Soft threshold operator for matrices ivan@155: % [Y] = softthreshold(X,theta) ivan@155: % X : input matrix ivan@155: % theta : thresholding parameter ivan@155: function [Y] = softthreshold(X,theta) ivan@155: Y = X - min(theta,abs(X)).*sign(X);