Kriging codes in matlab
129 views (last 30 days)
Show older comments
Kaushal Kishore
on 30 Oct 2017
Commented: Shiba shankar
on 4 Sep 2023
Can anyone tell me what code is needed for performing kriging.
2 Comments
John D'Errico
on 30 Oct 2017
Edited: John D'Errico
on 30 Oct 2017
Please do not post another question just to attach some data to the new question.
By the way, the data that you did post is barely sufficient for any interpolation method.
Just use scatteredInterpolant.
Accepted Answer
Kelly Kearney
on 30 Oct 2017
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.
3 Comments
More Answers (1)
Walter Roberson
on 30 Oct 2017
5 Comments
Walter Roberson
on 30 Oct 2017
Edited: Walter Roberson
on 30 Oct 2017
Note that needs variogramfit as an input
See Also
Categories
Find more on Interpolation in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!