vector field with the corresponding lon and lat superimposed with contourf

1 回表示 (過去 30 日間)
Farshid Daryabor
Farshid Daryabor 2019 年 5 月 29 日
Dear,
I have two sets of data vector (A) and the other one is a matrix (B) with the corresponding longitude and latitude. How can I plot the point data superimposed with the m_contourf plot with the same color for points with the exactly contourf colormap. Thank you in advance for your information and help.
A = [NaN, 20, NaN, 35, 15]; lonA = [31, 25, 36, 39, 40]; latA = [39, 33, 34, 41, 42];
B=(m*n); lonB(m*n); latB(m*n);
The code below I know does not work properly and is not what I expect.
>>figure
>>m_proj('mercator','lon',[lonmin lonmax],'lat',[latmin latmax]);
>>m_contourf(lonB,latB,B);
>>hold on
>>scatter(lonA,latA,pointsize,A)
>>hold off

回答 (0 件)

カテゴリ

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

Community Treasure Hunt

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

Start Hunting!

Translated by