Demo entry 6645706

matlab语言

   

Submitted by 123 on Oct 11, 2017 at 13:48
Language: Matlab. Code size: 306 Bytes.

nGPS=xlsread('123.xlsx');
A=nGPS';
lati=32+A(:,2)*0.0001;
longi=118+A(:,1)*0.0001;

for i=1:10
   [dis(i),Angle(i)]=distance([lati(i),longi(i)],[lati(i+1),longi(i+1)],almanac('earth','ellipsoid'));
enddis=dis*1000;%%%移动距离m
t=1; %GPS数据时间分辨率  秒S
Vec=dis/t; %移动速度 m/s
Angle=Angle;%%Angle移动方向,正北为0°

This snippet took 0.00 seconds to highlight.

Back to the Entry List or Home.

Delete this entry (admin only).