Plot3 mark first and last coordinate set?

조회 수: 5 (최근 30일)
James
James 2015년 12월 17일
답변: Star Strider 2015년 12월 17일
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?

답변 (2개)

Mike Garrity
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')
  댓글 수: 1
James
James 2015년 12월 17일
편집: James 2015년 12월 17일
what about changing the shade of the point such that the path also can be tracked?

댓글을 달려면 로그인하십시오.


Star Strider
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.

카테고리

Help CenterFile Exchange에서 Graphics에 대해 자세히 알아보기

태그

제품

Community Treasure Hunt

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

Start Hunting!

Translated by