how can I plot a 3-D helical trajectory
3 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/1617988/image.png)
ı need to plot a trajectory like pitcure above but ı could not. Can u help me. the known parameters are that diameter=4 [m], pith (gape) = 2 [m], height = 18 [m]. Also the simulation time is 50 second.
0 Kommentare
Antworten (1)
Matt J
am 15 Feb. 2024
Bearbeitet: Matt J
am 15 Feb. 2024
t=linspace(0,18*pi, 3000);
plot3(2*cos(t), 2*sin(t), t/pi)
6 Kommentare
Matt J
am 15 Feb. 2024
Bearbeitet: Matt J
am 15 Feb. 2024
OK. But what's the problem? Just increase the pitch.
t=linspace(0,4.5*2*pi, 3000);
T=t(end);
s=t(end)/50; %rescale to duration 50
t=t/s;
x=@(t) 2*cos(s*t); y=@(t) 2*sin(s*t); z=@(t)s*18*t/T;
plot3(x(t),y(t),z(t))
figure;
subplot(3,1,1); plot(t,x(t))
subplot(3,1,2); plot(t,y(t))
subplot(3,1,3); plot(t,z(t))
Siehe auch
Kategorien
Mehr zu Visualization finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!