How to plot position vs time
16 次查看(过去 30 天)
显示 更早的评论
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
0 个评论
采纳的回答
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 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Log Plots 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!