How to plot position vs time

조회 수: 14 (최근 30일)
Trey
Trey 2012년 3월 28일
답변: Fuad Ashraf 2020년 11월 14일
How do I create a script that will plot the vectors of time values(t) and position values(x) at the same time where as the relationship between time and position is that position is equal to the natural log of time. All help is greatly appreciated.
Thanks again

채택된 답변

Jonathan Sullivan
Jonathan Sullivan 2012년 3월 28일
t = 0:1000; % Your time vector
x = log(t); % Position is natural log of time
plot(t,x) % Plot your data
  댓글 수: 1
Trey
Trey 2012년 4월 10일
Thank you very much!

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

추가 답변 (1개)

Fuad Ashraf
Fuad Ashraf 2020년 11월 14일
t=0.0001;
x=log(t);
plot(t,x)

카테고리

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

Community Treasure Hunt

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

Start Hunting!

Translated by