[x, y] = meshgrid(-3:0.1:3, -2:0.1:2);
z = peaks(x,y);
surfc(x,y,z)

while (1)
for i = 0:360
    view(i, 30)
    pause(0.03)
end
end