%Mejme 100m pletiva. Oplotme jim pravouhelnikovy pozemek tak, aby mel
%maximalni obsah. Vyreste geometricky.
figure
aa=0:0.05:50;
bb=0:0.05:50;
[a b]=meshgrid(aa,bb);
z=a.*b;
mesh(a,b,z)
