function distort_eval(k) N = 100; x = (0:(N-1))/(N-1); b = 0.9 y = b + (1-b)*x.*exp(k*abs(x))./exp(k); plot(x, y); grid;