function strout = emoicons(nlines, ncols)
% matlab emoticon generator

if rem(ncols, 4) ~= 0
   disp([num2str(ncols) 'not divisible by 4']);
   break;
end;

eyes = [':', ';', '%','&','|','=','X','.','8','!','#','B'];
noses = ['-','~','''','*','o','=','`'];
mouth = ['>','<',')','(',']','[','*','{','o','O','D','S','Q','@'];

for i = 1:nlines
   str{i} = {};
   for j = 1:3:ncols
      ind = [unidrnd(length(eyes)) unidrnd(length(noses)) unidrnd(length(mouth))];      
      str{i} = [str{i} eyes(ind(1)) noses(ind(2)) mouth(ind(3)) ' '];
   end;
end;

strout = [];
for i = 1:nlines
   strout = [strout; str{i}];
end;

      
      