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.

 채택된 답변

KSSV
KSSV 2021년 2월 2일

1 개 추천

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

Francesco Miraglia
Francesco Miraglia 2021년 2월 2일
편집: Francesco Miraglia 2021년 2월 2일
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

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

도움말 센터File Exchange에서 Geographic Plots에 대해 자세히 알아보기

제품

태그

질문:

2021년 2월 2일

편집:

2021년 2월 2일

Community Treasure Hunt

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

Start Hunting!

Translated by