Question

In MATLAB create a code for

An ellipsoid of revolution is the solid analog of a two-dimensional ellipse. The equations for an ellipsoid of revolution rot

0 0
Add a comment Improve this question Transcribed image text
Answer #1

Code for the plot:

% Code to plot an ellipsoid with given equations and values of a and b

% Where, a = radius along the x axis

% b = radius along the y and z axes

a = 2;

b = 1;

[phi,theta] = ndgrid(linspace(0,2*pi),linspace(0,pi));

x = a*cos(phi).*cos(theta);

y = b*cos(phi).*sin(theta);

z = b*sin(phi);

surf(x,y,z)

________________________________________________________________________________

Screenshot:

1 > MATLAB Drive > Figure 1 x + WORKSPACE OLDER Name Value Size Class a 2 1x1 double b double 1 1x1 100X100 d... 100x100 phi

COMMAND WINDOW >> % code to plot an ellipsoid with given equations and values of a and b >> % Where, a = radius along the x a

*NOTE: Drop a comment for queries.

Add a comment
Know the answer?
Add Answer to:
In MATLAB create a code for An ellipsoid of revolution is the solid analog of a...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT