Radius from a GPS trajectory

조회 수: 11 (최근 30일)
Flatfoot
Flatfoot 2021년 6월 1일
댓글: Joseph Cheng 2021년 6월 1일
Hello,
I have a table with three variables, from a car driving arround a circuit: distance in meters, latitude and longitude in degress (decimals).
I would like to calculate a fourth column with the corner radius (in meters) that the car is doing in each point, in other words, the radius of the gps lines when they are plotted as if each small segment was part of single circle.
Of course, the result will tend to infinite when the car is in a straight line, but this is for me not an issue.
My best attempt was creating a function like that:
for i = 1:(numel(Map.Distance)-3)
xTemp = Map.Latitude(i:i+3);
yTemp = Map.Longitude(i:i+3);
Map.Radius(i) = circfit(xTemp, yTemp);
end
Function circfit was this one: https://de.mathworks.com/matlabcentral/fileexchange/5557-circle-fit
But this is not really working... Any ideas?
  댓글 수: 2
Joseph Cheng
Joseph Cheng 2021년 6월 1일
you should convert lat-lon into meters..

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

답변 (0개)

카테고리

Help CenterFile Exchange에서 Language Support에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by