plotting Solid of revolution of a function
    14 visualizaciones (últimos 30 días)
  
       Mostrar comentarios más antiguos
    
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
y=sin(x)
hold on 
fplot(y,[0,pi])
xline(0)
xline(pi)
yline(0)
hold off
0 comentarios
Respuestas (1)
  Alan Stevens
      
      
 el 2 de Mzo. de 2022
        How about:
X = 0:0.1:pi; R = sin(X); [z,x,y] = cylinder(R);
surf(x,y,z)
Ver también
Categorías
				Más información sobre Surface and Mesh Plots en Help Center y File Exchange.
			
	Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!


