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 件のコメント
Mathieu NOE
Mathieu NOE 2021 年 6 月 1 日
Joseph Cheng
Joseph Cheng 2021 年 6 月 1 日
you should convert lat-lon into meters..

サインインしてコメントする。

回答 (0 件)

カテゴリ

Help Center および File ExchangeLanguage Support についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by