Calculating the velocity (vector) from a 2-Dline
3 次查看(过去 30 天)
显示 更早的评论
Hi all I have a line (path) which is drawn by mouse on the screen. The line is 3 column vector [X Y T] where x is the x position along x-axis, y is the y position along Y-axis and T is the time (second) that x,y are registered.
ex. line = [10, 1, 1.2; 12, 2, 1.3; ...]
Since the data (line) is discrete I am confused in calculating the velocity vector. further in calculating the acceleration vector (if needed)
can you help me in resolving this issue?
thanks, P
0 个评论
采纳的回答
Azzi Abdelmalek
2013-1-22
编辑:Azzi Abdelmalek
2013-1-22
You can calculate the average velocity between two points (x1,y1) and (x2,y2), from time t1 to t2
S=sqrt((x2-x1)^2+(y2-y1)^2)/(t2-t1)
You can, also use interpolation.
3 个评论
Azzi Abdelmalek
2013-1-22
编辑:Azzi Abdelmalek
2013-1-22
If you want, but I think, you can interpolate the vector velocity. But from the result you can't get the position. For how to choose interpolation, I'm not good with that
更多回答(1 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Interpolating Gridded Data 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!