Plot of Simultaneous paths using comet3
4 次查看(过去 30 天)
显示 更早的评论
How to plot simultaneous paths (or trajectories) using comet3 command
0 个评论
采纳的回答
Walter Roberson
2012-1-3
I think you could probably use "hold on" and then another comet3() command.
0 个评论
更多回答(1 个)
Jose Jeremias Caballero
2012-1-3
could use the plot function.
t = -pi:pi/300:pi;
axis([-1 1 -1 1 -1 2])
hold on
for i=1:2:length(t)-1
T=[t(i) t(i+1)];
plot3(sin(5*T),cos(3*T),T,'r')
plot3(sin(5*T),sin(3*T),T,'b')
pause(0.000001)
end
hold off
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Surface and Mesh Plots 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!