Interpolated gridded data with limits
1 回表示 (過去 30 日間)
古いコメントを表示
I have gridded data which I want to plot on a longitude/latitude map. I have used the following code:
pcolor(lon1,S_latitude,sum_pd') %sum_pd' gridded data
shading interp
colormap jet
c = colorbar;
caxis([0 1])
c.Label.String = (['Sensitivity ' species_name ' (' species_unit ')']);
hold on
grid on
borders('countries','k')
But using pcolor interpolate across all longitudes (see image). Is there a way to avoid this or interpolate between a longitude region?
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/420853/image.png)
0 件のコメント
回答 (1 件)
KSSV
2020 年 11 月 20 日
Don't transpose the ZData. Try:
pcolor(lon1,S_latitude,sum_pd)
If you still face a porblem or if you get an error. Read about inpolygon.
3 件のコメント
参考
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!