Experimental (Semi-) Variogram
Updated 9 Jan 2013
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.
Wolfgang Schwanghart (2023). Experimental (Semi-) Variogram (https://www.mathworks.com/matlabcentral/fileexchange/20355-experimental-semi-variogram), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Platform CompatibilityWindows macOS Linux
Inspired by: Consolidator, parseargs: Simplifies input processing for functions with multiple options, IPDM: Inter-Point Distance Matrix
Inspired: variogramfit, Ordinary Kriging
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!Start Hunting!
Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.
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,
removed an error in the calculation of the number of bins