view general/numerical/hshrink.m @ 6:0ce3c2070089

Removed duplicate code and fixed doc in timed_action.
author samer
date Mon, 14 Jan 2013 14:33:37 +0000
parents e44f49929e56
children
line wrap: on
line source
% shrink - Shrinkage towards zero
%
% shrink :: real, [Size] -> [Size].
function y=shrink(th,x)

y=x;
y(y<th)=0;