I want to create a helix with radius 1.6e-5m and helix length 1.92e-3m.
r=1.6e-5;
gap=0.1e-3 % pitch distance
d=1.92e-3 % helix distance
z=linspace(0,d,1000);
t=(2*pi/gap)*z;
x=r*cos(t)
y=r*sin(t)
plot3(x,y,z)

Réponses (1)

Alan Stevens
Alan Stevens le 8 Nov 2020

0 votes

This is what your (unmodified) code produces for me:

Catégories

En savoir plus sur MATLAB dans Centre d'aide et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by