How to plot position vs time

5 vues (au cours des 30 derniers jours)
Trey
Trey le 28 Mar 2012
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

Réponse acceptée

Jonathan Sullivan
Jonathan Sullivan le 28 Mar 2012
t = 0:1000; % Your time vector
x = log(t); % Position is natural log of time
plot(t,x) % Plot your data
  1 commentaire
Trey
Trey le 10 Avr 2012
Thank you very much!

Connectez-vous pour commenter.

Plus de réponses (1)

Fuad Ashraf
Fuad Ashraf le 14 Nov 2020
t=0.0001;
x=log(t);
plot(t,x)

Catégories

En savoir plus sur Log Plots dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by