Question: FOR MATLAB PROGRAMMING: Here's what I have: a = 2; b = 1; x = a*cosphi*costheta; y = b*cosphi*sintheta; z = b*sinphi; [x,y,z] = ellipsoid(xa,ya,za,xb,yb,zb);
FOR MATLAB PROGRAMMING:

Here's what I have:
a = 2; b = 1; x = a*cos\phi*cos\theta; y = b*cos\phi*sin\theta; z = b*sin\phi; [x,y,z] = ellipsoid(xa,ya,za,xb,yb,zb);
I'm pretty sure it's something to do with the phi's and thetas as to why my code isn't working but my book is super vague about what to do here, any help is appreciate.
An ellipsoid of revolution is the solid analog of a two-dimensional ellipse. The equations for an ellipsoid of revolution rotated around the x axis are x = acos cos (8.25) b sin where a is radius along the x-axis, and b is the radius along the y- and z-axes. Plot an ellipsoid of revolution for a- 2 and b- 1
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
