function out = curlab2(H,K)
%
%

[m,n] = size(H);

out = zeros(m,n); 
onemat = ones(m,n);
out = onemat + 3*onemat.*(onemat + sign(H)) + (onemat+ sign(K));

