필터 지우기
필터 지우기

Calculating the velocity (vector) from a 2-Dline

조회 수: 3 (최근 30일)
tafteh
tafteh 2013년 1월 22일
답변: Kubugha Bunonyo 2016년 12월 12일
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

채택된 답변

Azzi Abdelmalek
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
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
tafteh
tafteh 2013년 1월 22일
thanks again, I guess the S=sqrt((x2-x1)^2+(y2-y1)^2)/(t2-t1) should be fine for me now.
cheers,

댓글을 달려면 로그인하십시오.

추가 답변 (1개)

Kubugha Bunonyo
Kubugha Bunonyo 2016년 12월 12일
What if we are dealing with and image ?

카테고리

Help CenterFile Exchange에서 Interpolating Gridded Data에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by