3d Plotting a decagonal pyramid
Mostrar comentarios más antiguos
what i have so far
r = linspace(0,2*pi);
th = 0:pi/6:2*pi ;
[R,T] = meshgrid(r,th) ;
X = R.*cos(T) ;
Y = R.*sin(T) ;
Z = R ;
surf(X,Y,Z)
What i'm wondering is, how do i make the length of each side of the base a user input,
and how do i make the height of the decagonal pyramid a user input as well.
1 comentario
Dyuman Joshi
el 22 de Oct. de 2023
Use input
Though, with the given method of generating the pyramid, the lenght of each side of the base is the same.
Respuesta aceptada
Más respuestas (0)
Categorías
Más información sobre Line Plots en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!

