How to plot position vs time

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

 Respuesta aceptada

Jonathan Sullivan
Jonathan Sullivan el 28 de Mzo. de 2012

1 voto

t = 0:1000; % Your time vector
x = log(t); % Position is natural log of time
plot(t,x) % Plot your data

Más respuestas (1)

Fuad Ashraf
Fuad Ashraf el 14 de Nov. de 2020

0 votos

t=0.0001;
x=log(t);
plot(t,x)

Categorías

Etiquetas

Preguntada:

el 28 de Mzo. de 2012

Respondida:

el 14 de Nov. de 2020

Community Treasure Hunt

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

Start Hunting!

Translated by