Display location of gps using geoshow()
2 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
nikhil nambiar
el 13 de Ag. de 2017
Respondida: Chad Greene
el 13 de Ag. de 2017
Hii I want to display current location on geoshow() on the basis of longitude and latitude without loading any maps. when I pass latitude and longitude to geoshow : geoshow(lat(end),lon(end)) it just opens a empty axes without any plot. Thankyou
0 comentarios
Respuesta aceptada
Chad Greene
el 13 de Ag. de 2017
I think geoshow is plotting the data you're giving it, but you're only plotting the very last values in your lat,lon dataset. One of two things might be happening:
1. lat(end) and lon(end) are NaN. It's not uncommon for the last entries in georeferenced datasets to be NaN. Or,
2. The marker is tiny. Here's an example. Try this:
figure
geoshow(30,70)
If you look REALLY close there's a tiny dot at (30,70). You can make it bigger, like this:
geoshow(30,70,'displaytype','point','markersize',40)
Or you can make a line like this:
geoshow([30 35],[70 75])
0 comentarios
Más respuestas (0)
Ver también
Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!