Display location of gps using geoshow()
2 views (last 30 days)
Show older comments
nikhil nambiar
on 13 Aug 2017
Answered: Chad Greene
on 13 Aug 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 Comments
Accepted Answer
Chad Greene
on 13 Aug 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 Comments
More Answers (0)
See Also
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!