Plotting Latitude, Longitude and a variable

5 ビュー (過去 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)
  1 件のコメント
MatLab Code N
MatLab Code N 2019 年 5 月 21 日
Thanks! Worked perfect.

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File Exchange2-D and 3-D Plots についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by