Finding curvature of a route, set by coordinates

4 ビュー (過去 30 日間)
Amritz Ansara
Amritz Ansara 2021 年 5 月 12 日
コメント済み: Amritz Ansara 2021 年 5 月 16 日
I have a spreadsheet containing data about a vehicle's location in terms of longitude and latitude. I have converted this into a cartesian plot using the latlon2local function, which turns out fine and is below:
The spreadsheet is attached.
My question is, how do I get some sort of plot of the radii of curvature of the turns around that route? I want to find how 'steep' the turns are, and preferably what angle the turn goes through. The spreadsheet also contains angular data (it's column 6), but I find it tedious to match every turn manually with the angle (as I have lots of datasets like this one).
Please let me know if you need any clarification.
The code to make the plot above is laid out below:
A = readmatrix("20181026075227_947BE7249B00.csv");
figure(2)
%column 3 is longitude, column 4 is latitude
%normalise coordinates wrt the first points
[xEast, yNorth] = latlon2local(A(:, 4), A(:, 3), 0, [A(1, 4), A(1, 3), 0]);
plot(xEast, yNorth)
xlabel('X (m)')
ylabel('Y (m)')
title('Route')
grid on;
  1 件のコメント
Amritz Ansara
Amritz Ansara 2021 年 5 月 16 日
Basically what I want is to find how many 90 degree corners of radius 15m are in the route, etc.

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

回答 (0 件)

カテゴリ

Help Center および File ExchangeGrid Lines, Tick Values, and Labels についてさらに検索

製品


リリース

R2020b

Community Treasure Hunt

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

Start Hunting!

Translated by