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 ExchangeGeographic Plots についてさらに検索

製品

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by