How to hide quiver over land in map?

3 ビュー (過去 30 日間)
eko supriyadi
eko supriyadi 2017 年 8 月 29 日
回答済み: KSSV 2017 年 8 月 30 日
Hi everyone..
i'm use m_map as tool to diplay wave sea and wind data over land
so this is the problem.. how remove the quiver (wind data) over the land which i'm only need quiver plot only over sea (not land)?
this is my script
m_quiver(X,Y,DirU,dIRv,1,'k');
hold on;
m_gshhs_i('patch',[.6 .6 .6]);
hold on;
m_pcolor(X,Y,Z1);
and i get wrong figure (see attach)
am i wrong arrange the "hold on" code?
Tks. Eko

回答 (1 件)

KSSV
KSSV 2017 年 8 月 30 日
As you said, you have land and sea.....you must be knowing the coordinates for land and sea.....make land values NaN....so that it displays only sea.

カテゴリ

Help Center および File ExchangeVector Fields についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by