Scalling MATLAB Distance Velocity
2 次查看(过去 30 天)
显示 更早的评论
Suppose I have the following two time vectors vectors
t2 = 4 4 4 5 5 5 6 6 6 7 7 7
and t1 = 1 2 3 4 5 6 7 8 9
I know the velocity is 1 m/s.
How can I scale t2 and t1? In other words, how can I set the first t2(1) = t1(1) ?
5 个评论
Jan
2013-3-5
There is still the confusing t4 in the questions. Please, Anthony, edit the question and either fix or explain this.
采纳的回答
Image Analyst
2013-3-4
If t1 and t2 are two different ranges of your time axis, then why does t2 have repeated values? And what is the name of your velocity vector that corresponds to t1? If you have that velocity vector and t1, then you can get the velocity vector interpolated for the times in t2 using interp1():
velocity2 = interp1(t1, velocity1, t2);
12 个评论
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Logical 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!