フィルターのクリア

How to plot position vs time

16 ビュー (過去 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 Center および File ExchangeLog Plots についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by