function spherical(x,y) %UNTITLED1 Summary of this function goes here % Detailed explanation goes here x=-3:0.1:3; y=-3:0.1:3; [X,Y]=meshgrid(x,y); Z=(4-X.^2-Y.^2).^0.5; img = surf(X,Y,Z,'EdgeColor','none') %colormap(gray); %view(0,-90) view(0,30) %rotate(img,[0,90],90) %viewmtx(0,90,60) axis off %axis equal axis square axis equal axis vis3d %axis image axis fill