I have position vector
r(t)=<t , t^2 , 2>,
I have to plot it using plot3 function and also plot tangent at the point P(-1 , 1, 2) but I cant figure it out. Can you help me please?
t = 0:pi/50:10*pi;
st = t;
ct = t.^2;
figure
plot3(st,ct,2)

댓글 수: 3

Image Analyst
Image Analyst 2019년 4월 21일
Can you explain in more detail what
r(t)=<t , t^2 , 2>
means? What is x, what is y, and what is the value (z)?
Kuatra Patil
Kuatra Patil 2019년 4월 21일
it is position vector's i j k components and t is variable for time
Image Analyst
Image Analyst 2019년 4월 21일
We're getting there, but not quite. So are you saying that
  1. i, which is x, goes from some unspecified negative number up to 0
  2. j, which is y, goes from some negative, unspecified t to some positive, unspecified t
  3. k, which is z, goes from 2 up to some unspecified max z value.
Can you specify the unspecified range limits?

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

 채택된 답변

madhan ravi
madhan ravi 2019년 4월 21일
편집: madhan ravi 2019년 4월 21일

0 개 추천

Make the vectors the same length then exactly as the error message tells you! 2 is a scalar, each component of your vector represents x, y & z.
plot3(st,ct,repmat(2,1,numel(t)))

추가 답변 (0개)

카테고리

도움말 센터File Exchange에서 Line Plots에 대해 자세히 알아보기

질문:

2019년 4월 21일

댓글:

2019년 4월 21일

Community Treasure Hunt

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

Start Hunting!

Translated by