How can I create a contourf with costline?

1 回表示 (過去 30 日間)
Szabó-Takács Beáta
Szabó-Takács Beáta 2016 年 6 月 23 日
回答済み: Szabó-Takács Beáta 2016 年 6 月 23 日
Dear All, I have a 2D matrix about precipitation values in Europe. I would like to create a contourf from this matrix with costline. I tried to the followings:
h = worldmap('Europe');
geoshow('landareas.shp', 'FaceColor', [1 1 1])
hold on
axesm('eqdconic','maplatlimit',[26.5861 71.8699],'maplonlimit',[-34.748 60.8422]);
>> contourf(lon,lat,IU2);
But unfortunately it does not work. Can someone suggest me a solution for creating contourf with costline? I would appreciate if someone helped me.

採用された回答

Szabó-Takács Beáta
Szabó-Takács Beáta 2016 年 6 月 23 日
Meantime I found a solution.
worldmap('Europe');
load coast;
plotm(lat, long, 'k');
clear lat long;
lat=load(lat.mat)
lon=load(lon.mat)
contourfm(lat,lon,IU2);

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeBar Plots についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by