Filter löschen
Filter löschen

How to remove needless ranges from the pcolor map?

2 Ansichten (letzte 30 Tage)
Ji Eun Lee
Ji Eun Lee am 27 Mär. 2017
Kommentiert: KSSV am 27 Mär. 2017
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
But it runs out the observation range.
Below is plotting the observation points on the picture 1.
What should I do to remove that range?
  1 Kommentar
KSSV
KSSV am 27 Mär. 2017
Don't use ceil or floor to find min and max..only use min and max.

Melden Sie sich an, um zu kommentieren.

Antworten (0)

Kategorien

Mehr zu Interpolation of 2-D Selections in 3-D Grids finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by