How to 3D plot a circle with radius of 1 in x y and sine wave in z?
Mostrar comentarios más antiguos
Hello,
I want to 3D plot a circle looks like the image below. (Sorry for the poor drawing) The figure is a circle of radius 1 in xy surface and the circle should have a sine wave in z-direction. It's exactly same shape with pringles chip.

Respuesta aceptada
Más respuestas (1)
William
el 6 de Abr. de 2021
How about this:
theta = linspace(0,2*pi,100);
x = sin(theta);
y = cos(theta);
z = sin(2*theta);
figure();
plot3(x,y,z);
1 comentario
Hwajin Choi
el 6 de Abr. de 2021
Categorías
Más información sobre 2-D and 3-D 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!