% Unit 2 (MATLAB Course @ UAM)
% (c) Alexander Knebe

%===============
% sin(x)*cos(y)
%===============
clear all
close all
clc

% # of pints
Np = 100;

% generate x,y mesh between [0,2pi]x[0,2pi]
xm = linspace(0,2*pi,Np);
ym = linspace(0,2*pi,Np);
[x,y] = meshgrid(xm,ym);

% the function we are interested in
f = sin(x).*cos(y);

% visualize that function
%contour(x,y,f)
surf(x,y,f)
%surfl(x,y,f)
%mesh(x,y,f)
colorbar
