MATLAB: Kriging codes in matlab

krigingspatial interpolation

Can anyone tell me what code is needed for performing kriging.

Best Answer

Walter's answer links to the best toolbox that I know of for kriging in Matlab. However, if you really want to use the gstat method, I would suggest actually using gstat itself (in R). The R package is much more robust than anything you're going to find in Matlab (and I say that as a person with a strong preference for Matlab over R in almost all other contexts).
Also consider whether kriging (or any geostatistical interpolation method) is really ideal for your dataset. I see a lot of people trying to use kriging simply because that's the ArcGIS default, and they want to create a similar map, without taking the time to understand the many assumptions used to generate those maps.
Related Question