How to remove needless ranges from the pcolor map?
조회 수: 2 (최근 30일)
이전 댓글 표시
I have three data - Lon(304x448), Lat(304x448), SIC(304x448)
And below is the code I used
lon=Lon(:);
lat=Lat(:);
x1=floor(min(lon));
x2=ceil(max(lon));
y1=floor(min(lat));
y2=ceil(max(lat));
lon1=[x1:0.05:x2];
lat1=[y1:0.05:y2];
[long,lati]=meshgrid(lon1,lat1);
sic=griddata(Lon,Lat,SIC,long,lati);
pcolor(lon1,lat1,sic)
shading flat
This way, the map looks like this
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/162190/image.png)
But it runs out the observation range.
Below is plotting the observation points on the picture 1.
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/162191/image.png)
What should I do to remove that range?
댓글 수: 1
답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Interpolation of 2-D Selections in 3-D Grids에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!