1;

function foo(x)
  bar (x);
  pause (0.1);
  
  %Comment any two of the following three lines
  testb;
  %run('testb.m');
  %source('testb.m');
end
 
function bar (y)
  m = sprintf('y = [%i]', y);
  system (['echo ''' m ''' > testb.m']);
end


for z = 1:10
  foo(z);
end
