필터 지우기
필터 지우기

Plotting Latitude, Longitude and a variable

조회 수: 1 (최근 30일)
MatLab Code N
MatLab Code N 2019년 5월 20일
댓글: MatLab Code N 2019년 5월 21일
Hi, I have three columns (latitude, Longitude and X). I want a plot with latitude as x axis, Longitude as Y axis and the corresponding value of X in the main plot. X has to be colored using gradiant of value of X to get a hsv color.
Sample data attached!!
Thanks!

채택된 답변

KSSV
KSSV 2019년 5월 21일
[num,txt,raw] = xlsread('sample_data.xlsx') ;
lat = num(:,1) ;
lon = num(:,2) ;
z = num(:,3) ;
z(z>500) = NaN ;
scatter(lon,lat, 40, z, 'filled');
colormap(hsv)

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Geographic Plots에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by