how to split a number
2 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Abhiraj Gupta
el 26 de Jun. de 2019
Comentada: Abhiraj Gupta
el 27 de Jun. de 2019
for eg I have this data from a gps receiver 2829.20246 in which 28 is degree value and 29.20246 is minute value.I want to convert the minute in degree decimal . So how can I seperate and process data.....????
0 comentarios
Respuesta aceptada
Bjorn Gustavsson
el 26 de Jun. de 2019
Perhaps something like this:
GPSval = 2829.20246;
GPSdeg = sign(GPSval)*floor(abs(GPSval/100));
GPSmin = GPSval - 100*GPSdeg;
Should be stable to negative values.
HTH
Más respuestas (0)
Ver también
Categorías
Más información sobre Automated Driving Toolbox 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!