How to use variogramfit function for my dataset?

12 次查看(过去 30 天)
My data is:
semivariogram values=[0; 5.953452709; 3.819761106; 0.168685691; 2.300182045; 0.015065368]
lag distances=[ 0 ; 1.5; 3; 4.5; 6; 7.5]
How to use this recently developed function ( to fit a spherical model to my experimental semivariogram (data above) and get the parameters of the theoretical model?

回答(1 个)

Govind KM
Govind KM 2023-6-7
Hi Pooneh,
An example code for you to use the function would be:
sgvalues=[0; 5.953452709; 3.819761106; 0.168685691; 2.300182045; 0.015065368];
ldist=[0; 1.5; 3; 4.5; 6; 7.5];
The model is set as spherical by default.
The function also accepts three more optional arguments, initial value for range, initial value for sill variance and the number of observations per lag distance. The initial values will be taken as their specified defaults if not passed as arguments. The outputs are
a : Range
c : Sill
n : Nugget (empty if nugget variance is not applied)
S : structure array with additional information
You can get the parameters of the theoretical model from the output structure S.
You can download the variogramfit.m script from the functions tab of the link you provided. It is quite well commented and you can refer to it for further information.


Help CenterFile Exchange 中查找有关 Linear and Nonlinear Regression 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by