clear all h = 2/100; for i = 1:101 x = i*h; X(i) = x; for j = 1:101; y = j*h; Y(i) = y; C(i,j) = min(x,y); end end mesh(C)