필터 지우기
필터 지우기

Display location of gps using geoshow()

조회 수: 2 (최근 30일)
nikhil nambiar
nikhil nambiar 2017년 8월 13일
답변: Chad Greene 2017년 8월 13일
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

채택된 답변

Chad Greene
Chad Greene 2017년 8월 13일
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개)

태그

Community Treasure Hunt

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

Start Hunting!

Translated by