How to 3D plot a circle with radius of 1 in x y and sine wave in z?
Ältere Kommentare anzeigen
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.

Akzeptierte Antwort
Weitere Antworten (1)
William
am 6 Apr. 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 Kommentar
Hwajin Choi
am 6 Apr. 2021
Kategorien
Mehr zu 2-D and 3-D Plots finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!