Good morning,
I wanted to know if it was possible to associate and plot, with different colors depending on various ranges, a constant speed value to geographic coordinates (therefore within a geoplot).
in practice I have a series of satellite acquisitions consisting of 3 columns: the first two are lat and long and the third is the speed acquired at that point. What I would like to do is have the satellite plot of the coordinates associated with their velocity value.
I don't know if I get the idea right.

 Respuesta aceptada

KSSV
KSSV el 2 de Feb. de 2021

1 voto

It depends on whether your data is scattered data or structured data. What ever it is, what you want is very much possible. Refer this link: https://in.mathworks.com/matlabcentral/answers/412639-creating-surface-plot-from-a-matrix-with-3-columns
Also have a look on griddata, scatteredInterpolant. To plot have a look on scatter, surf, pcolor.

1 comentario

Francesco Miraglia
Francesco Miraglia el 2 de Feb. de 2021
Editada: Francesco Miraglia el 2 de Feb. de 2021
the data is structured, imported from excel.
I had thought of doing it this way. But I don't know why, it gives me a plot as if all the values in the fourth column are zero (they aren't).
figure (1), geoplot(TYPE {:,2}, TYPE {:,3},'b')
if TYPE {i,4}==0
text(TYPE{:,2}, TYPE {:,3}, '*','color','green');
elseif (TYPE {i,4}>0 & TYPE {i,4}<5)
text(TYPE{:,2}, TYPE {:,3}, '*','color','red');
elseif (TYPE{i,4}>5 & TYPE {i,4}<10)
text(TYPE{:,2}, TYPE {:,3}, '*','color','magenta');
else
text(TYPE{:,2}, TYPE {:,3}, '*','color','yellow');
end
title( 'TITLE')
geobasemap satellite

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Geographic Plots en Centro de ayuda y File Exchange.

Productos

Etiquetas

Preguntada:

el 2 de Feb. de 2021

Editada:

el 2 de Feb. de 2021

Community Treasure Hunt

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

Start Hunting!

Translated by