フィルターのクリア

Plot data from matrix longitude, latitude and variable

5 ビュー (過去 30 日間)
Pepe Grillo
Pepe Grillo 2021 年 5 月 11 日
コメント済み: Pepe Grillo 2021 年 5 月 12 日
Hi!
I have the matrix, data_1 (attached), and I want to make a map from South Atlantic with coast lines. The matrix is longitude, latitude and the variable as columns. Each lat and lon represent positions where is data, but I would like to have an interpolation.
Thanks!

採用された回答

Chunru
Chunru 2021 年 5 月 12 日
x = linspace(min(data(:,1)), max(data(:,1)), 200);
y = linspace(min(data(:,2)), max(data(:,2)), 200);
[xg, yg] = meshgrid(x, y);
zg = griddata(data(:,1), data(:,2), data(:, 3), xg, yg);
p = pcolor(xg, yg, zg);
p.EdgeColor='none';

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeGeodesy and Mapping についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by