Finding curvature of a route, set by coordinates
2 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
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;
Réponses (0)
Voir également
Catégories
En savoir plus sur Axis Labels dans Help Center et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!