Borrar filtros
Borrar filtros

Plotting Latitude, Longitude and a variable

1 visualización (últimos 30 días)
MatLab Code N
MatLab Code N el 20 de Mayo de 2019
Comentada: MatLab Code N el 21 de Mayo de 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!

Respuesta aceptada

KSSV
KSSV el 21 de Mayo de 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)

Más respuestas (0)

Categorías

Más información sobre Geographic Plots en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by