Matlab Mobile: Plot a walking path in cartesian
3 views (last 30 days)
I am using Matlab mobile to acquire postioning data while walking along a path . Then I convert it to cartesian and plot it in 3D. I want to calculate the distance walked. Here is the code:
In Matlab Mobile: [Android]
m = mobiledev;
m.PositionSensorEnabled = 1;
m.Logging = 1;
<walk straight 10 steps>
m.Logging = 0
[lat,lon,timestamp,speed,course,alt,horizac] = poslog(m)
< convert to cartesian>
[x,y,z] = geodecticenu(lat,lon,horizac,lat(1),lon(1),horizac(1),wgs84Ellipsoid);
I expect a staright path in 3D, But it is not showing that.
Looking forward to your response.