Plot3 mark first and last coordinate set?
8 ビュー (過去 30 日間)
古いコメントを表示
I at moment trying to plot motion in 3d, in which it could be very helpful if I could visualize where the motion starts and end by marking those points in a different way in the plot?..
How do i do that?
0 件のコメント
回答 (2 件)
Mike Garrity
2015 年 12 月 17 日
The simplest way is to just create a second plot:
plot3(x,y,z)
hold on
plot3([x(1),x(end)],[y(1),y(end)],[z(1),z(end)],'o')
Star Strider
2015 年 12 月 17 日
My choice would be quiver3, plotting an arrow from one point to the next. Use the gradient function on each vector to create the direction vectors quiver3 needs.
0 件のコメント
参考
製品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!