Matlab Mobile: Plot a walking path in cartesian
1 visualización (últimos 30 días)
Mostrar comentarios más antiguos
Nazish Fahim
el 27 de Ag. de 2019
Comentada: Hamed Shamsi khani
el 24 de Mayo de 2023
Hi,
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);
plot3(x,y,z)
I expect a staright path in 3D, But it is not showing that.
Kindly help.
Looking forward to your response.
Regards,
Naz
1 comentario
Hamed Shamsi khani
el 24 de Mayo de 2023
Hello. Both geodecticenu and geodectic2enu give this error:
'wgs84Ellipsoid' requires Mapping Toolbox
Respuesta aceptada
Abhisek Pradhan
el 30 de Ag. de 2019
The entire code looks fine.Just a minor mistake in using geodeticenu function. Use geodetic2enu instead for getting the desired results.
Más respuestas (0)
Comunidades de usuarios
Más respuestas en Distance Learning Community
Ver también
Categorías
Más información sobre MATLAB Mobile en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!