Effacer les filtres
Effacer les filtres

Display location of gps using geoshow()

1 vue (au cours des 30 derniers jours)
nikhil nambiar
nikhil nambiar le 13 Août 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

Réponse acceptée

Chad Greene
Chad Greene le 13 Août 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])

Plus de réponses (0)

Tags

Produits

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by