hi. i tried to plot a prism with a n-sides base. i only could plot the 2 bases (for n =8). now i have no idea how to plot the faces. plz help me
n=8;A=ones(n+1);z1=2;h=3;z=A(:,1)*z1;zz=z+h;t = 0:2*pi/n:2*pi;x=cos(t);y=sin(t);plot3(x,y,z)hold onplot3(x,y,zz)
Best Answer