How to plot position vs time

4 visualizaciones (últimos 30 días)
Trey
Trey el 28 de Mzo. de 2012
Respondida: Fuad Ashraf el 14 de Nov. de 2020
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
t = 0:1000; % Your time vector
x = log(t); % Position is natural log of time
plot(t,x) % Plot your data
  1 comentario
Trey
Trey el 10 de Abr. de 2012
Thank you very much!

Iniciar sesión para comentar.

Más respuestas (1)

Fuad Ashraf
Fuad Ashraf el 14 de Nov. de 2020
t=0.0001;
x=log(t);
plot(t,x)

Categorías

Más información sobre Log Plots en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by