% t1(x) is a toy example used to illustrate global and local variables.
% See p. 9.

function y = t1(x)
global k m
   p=x;
   x=1;
   k=2;
   m=3;
   t2(x)
   y=[p,x,k,m]
end

function t2(z)
global k
    p=11;
    k=12;
    m=14;
    z=16;
end



