function Y = X(f) Y = zeros(size(f)); absf = abs(f); k = find(absf<=1); Y(k) = 1-absf(k);