%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%
%% Kuvia contour- ja contourf-funktioilla. 
%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

%% Tyyppiesimerkki z=f(x,y) = sin(x)cos(y)

N = 1000;

x = linspace(-2*pi,2*pi,N);
y = linspace(-2*pi,2*pi,N);

z = sin(x)'.*cos(y);
  
contourf(x,y,z)