5.0

5.0 | 1 rating Rate this file 151 downloads (last 30 days) File Size: 3.74 KB File ID: #20355

Experimental (Semi-) Variogram

by Wolfgang Schwanghart

 

19 Jun 2008 (Updated 24 Jun 2008)

Code covered by BSD License  

calculate the experimental (semi-) variogram

Download Now | Watch this File

File Information
Description

variogram calculates the experimental variogram in various dimensions. It makes extensive use of two functions written by John D'Errico (ipmd, consolidator). Both are required to run the function.

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

Requirements:
The function requires two functions written by John D'Errico available on the Mathworks FEX
    1. IPMD (objectId=18937)
    2. CONSOLIDATOR (objectId=8354)
The function uses parseargs (objectId=10670) by Malcolm wood as subfunction.

Acknowledgements

The author wishes to acknowledge the following in the creation of this submission:
Consolidator, parseargs: Simplifies input processing for functions with multiple options, IPDM: Inter-Point Distance Matrix

MATLAB release MATLAB 7.5 (R2007b)
Tags for This File  
Everyone's Tags
Tags I've Applied
Add New Tags Please login to tag files.
Comments and Ratings (4)
30 Jul 2009 Shazux Gharasoo

very nice program indeed. I had a question by the way. how the distance is calculated? direct distance or along X and Y streets?

02 Aug 2009 Wolfgang Schwanghart

Hi Shazux,

the distance measure used here is the euclidean distance. I guess that is what you mean by direct distance, do you?

Best regards,
Wolfgang

17 Aug 2009 Shazux Gharasoo

that was what I meant, thank you :)
one more question, how to pass the data that has been plot? i mean here:
plot(out.distance,out.val,marker)
I need to do some curve fitting on those values...

17 Aug 2009 Shazux Gharasoo

sorry, I found out that these values are saved already in variable 'd' as a structure. thanks though

Please login to add a comment or rating.
Updates
24 Jun 2008

removed an error in the calculation of the number of bins

Tag Activity for this File
Tag Applied By Date/Time
geostatistics Wolfgang Schwanghart 22 Oct 2008 10:06:38
spatial modelling Wolfgang Schwanghart 22 Oct 2008 10:06:38
variogram Wolfgang Schwanghart 22 Oct 2008 10:06:38
dimensions Wolfgang Schwanghart 22 Oct 2008 10:06:38
 

MATLAB Central Terms of Use

NOTICE: Any content you submit to MATLAB Central, including personal information, is not subject to the protections which may be afforded information collected under other sections of The MathWorks, Inc. Web site. You are entirely responsible for all content that you upload, post, e-mail, transmit or otherwise make available via MATLAB Central. The MathWorks does not control the content posted by visitors to MATLAB Central and, does not guarantee the accuracy, integrity, or quality of such content. Under no circumstances will The MathWorks be liable in any way for any content not authored by The MathWorks, or any loss or damage of any kind incurred as a result of the use of any content posted, e-mailed, transmitted or otherwise made available via MATLAB Central. Read the complete Terms prior to use.

Contact us at files@mathworks.com