Experimental (Semi-) Variogram

calculate the isotropic and anisotropic experimental (semi-) variogram
Updated 9 Jan 2013

View License

variogram calculates the isotropic and anisotropic experimental variogram in various dimensions.

d = variogram(x,y)
d = variogram(x,y,'pn','pv',...)

The function uses parseargs (objectId=10670) by Malcolm wood as subfunction.

Currently, the function calculates all variogram values at one step. While this is fast for small data sets (n<2000), it may fail on large data sets owing to memory constraints. For large datasets you may thus want to use the 'subsample' option.

Cite As

Wolfgang Schwanghart (2024). Experimental (Semi-) Variogram (https://www.mathworks.com/matlabcentral/fileexchange/20355-experimental-semi-variogram), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2009a
Compatible with any release
Platform Compatibility
Windows macOS Linux
Find more on Weather and Atmospheric Science in Help Center and MATLAB Answers

Community Treasure Hunt

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

Start Hunting!
Version Published Release Notes

Bug removed that occurred when calculating the distances for more than two dimensions.

removed a bug in calculating the number of angular bins for anisotropic variograms.

Removed dependency from IPDM. Fortunately, it is even faster now on my machine. The relatively large memory overhead is still unresolved. Added subsampling option.

dependence on consolidator was removed,
anisotropic experimental variogram is now supported.

removed an error in the calculation of the number of bins