plotting Solid of revolution of a function

17 views (last 30 days)
Im trying to make a plot of a solid of revolution using a function but I don't knwo how to do it
In the plot the solid of revolution needs to be in base of the x axis in [0, pi]
syms x
hold on
hold off

Answers (1)

Alan Stevens
Alan Stevens on 2 Mar 2022
How about:
X = 0:0.1:pi; R = sin(X); [z,x,y] = cylinder(R);
  1 Comment
Fernando Moreno
Fernando Moreno on 2 Mar 2022
I think i can work with it, thank you very much

Sign in to comment.

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by