Matlab으로 지도를 그리고 싶습니다.

24 visualizaciones (últimos 30 días)
상원 안
상원 안 el 5 de Feb. de 2024
Respondida: Angelo Yeo el 5 de Feb. de 2024
위도, 경도 값을 GPS로 실시간으로 받아올 수 있습니다.
해당 값을 바탕으로 현재 위치를 점으로 나타내고 싶습니다.
그래서 위치가 변하면 점이 실시간으로 움직이면서 거리와 속도를 얻고 싶습니다.
Mapping Toolbox를 이용하여 할 수 있는 방법도 알 수 있으면 좋겠습니다.

Respuestas (1)

Angelo Yeo
Angelo Yeo el 5 de Feb. de 2024
기본적으로는 geoplot 함수를 이용해서 지도를 그릴 수 있습니다. 기본적인 예시는 아래와 같습니다.
load usapolygon.mat
geoplot(uslat,uslon)
geobasemap topographic
위도, 경도 값을 이용해 아래와 같이 그림을 그릴 수도 있습니다.
lat = [48.915 48.907 48.901 48.893 48.887 48.881 48.875 48.869 48.865];
lon = [10.192 10.188 10.182 10.171 10.166 10.165 10.167 10.173 10.184];
geoplot(lat,lon,"k--o")
geobasemap streets
자세한 내용은 geoplot 문서를 확인하여 주십시오.

Categorías

Más información sobre 지리 플롯 en Help Center y File Exchange.

Etiquetas

Productos


Versión

R2023b

Community Treasure Hunt

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

Start Hunting!