Error with the command Geoplot
조회 수: 10 (최근 30일)
이전 댓글 표시
Hey guys,
I need to display my latitude and longitude using the commman geoplot. This is my code:
A=readtable('Filename.xlsx');
lat=(A(:,"Latitud"));
lon=(A(:,"Longitud"));
geoplot(lat,lon);
legend('Ruta 301');
After run this code, thi is the code that i see:
Error using geoplot
Expected lat to be one of these types:
double, single, uint8, uint16, uint32, uint64, int8, int16, int32, int64
Instead its type was table.
Error in untitled (line 4)
geoplot(lat,lon);
Please help me if you know wich is my problem.
Thnak you
댓글 수: 0
답변 (2개)
Walter Roberson
2022년 4월 24일
lat = A{:,"Latitud"};
lon = A{:,"Longitud"};
OR
lat = A.Latitud;
lon = A.Longitud;
댓글 수: 2
참고 항목
카테고리
Help Center 및 File Exchange에서 Geographic Plots에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!