MATLAB: How to create a surface with points distributed randomly

make complete surface from randomly placed pointsscatteredinterpolant

Hi
How can I create a surface with points distributed randomly like the attached file.
Best regards

Best Answer

N = 25;
x = rand(1,N) * 150; %wider than it is tall
y = rand(1,N) * 50;
pointsize = 20;
scatter(x, y, pointsize, 'filled')