% eecs 556, 2003, final exam, problem 1 template
rand('state',0);randn('state',0);
nx = 16; ny = 16; nsd = 1;
p=0.015;
ff = ((rand(ny,nx) < p) - p)/sqrt(p*(1-p));    % the desired signal
vv = nsd*randn(ny,nx);