% How do I graph a vertical hemisphere with a radius of 1 and center of (0,0,0) in MATLAB? % 103 views (last 30 days) clc; clear; close all; [u,v,w] = sphere; figure; surf(u,v,w); axis equal; % Disegna la sfera di raggio 1 r = 2; %# Chosen radius value to be 1 xyz = emisfera(r); [nRi,nCo] = size(xyz); x = xyz(1:nRi,1:nCo/3); y = xyz(1:nRi,nCo/3+1:2*nCo/3); z = xyz(1:nRi,2*nCo/3+1:nCo); figure; surf(x,y,z); %# Plot the surface axis equal; %# Make the scaling on the x, y, and z axes equal figure; hs = surf(x,y,z); %# Plot the surface direction = [0 1 0]; % Specify Direction rotate(hs, direction, 90) % Rotate The Object (Hemisphere) in ‘Direction’ By 90° axis equal; %# Make the scaling on the x, y, and z axes equal colorbar;