Help with a 3-D plot
이전 댓글 표시
I have written a code that simulates the flight of a golf ball. I currently have 6 subplots, (5 are 2-D, 1 is a 3-D plot). For the 3-D plot, how would I add a mesh or lines, so that it is easier to tell where the line ends? Currently, it has an x-y-z axis, but i have trouble telling where the ball lands if i add any curve to the flight.
My 3-d plot code:
subplot(2,3,6), plot3(x,y,z);
title('3-D Plot of flight');
xlabel('X-Distance, m');
ylabel('Y-Distance, m');
zlabel('Z-Distance, m');
x, y, and z are the matrices/vectors of the locations for times 0<t, until z = 0. All are equal length, since my code updates by .01 seconds until the height (z) equals 0.
채택된 답변
추가 답변 (0개)
카테고리
도움말 센터 및 File Exchange에서 Axis Labels에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!