% mfile sfinit
% inintialize sharks and fish
disp(' Initializing shark and fish for simulation.')
% 10 by 10 cell ocean
  d=20;
% put fish and sharks in random places
% (generate uniform [0,1] random numbers, and reset seed to 0)
  rand('seed',0)
  ofish = (rand(d,d) < .1);
  oshark = (rand(d,d) < .006) & (~ofish);
% Take 20 time steps
  n=120;
  disp(['Ocean size = ',num2str(d)])
  disp(['Number of time steps = ',num2str(n)])
