Plotting Latitude, Longitude and a variable

5 vues (au cours des 30 derniers jours)
MatLab Code N
MatLab Code N le 20 Mai 2019
Commenté : MatLab Code N le 21 Mai 2019
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!

Réponse acceptée

KSSV
KSSV le 21 Mai 2019
[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 commentaire
MatLab Code N
MatLab Code N le 21 Mai 2019
Thanks! Worked perfect.

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

En savoir plus sur 2-D and 3-D Plots dans Help Center et File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by