Re: Fitting of magnetic susceptibility data
Posted: Wed Feb 17, 2016 1:57 am
And it works!
Thanks a lot, I'll be tuned in for the bug fix.
Thanks a lot, I'll be tuned in for the bug fix.
A forum for EasySpin users
https://easyspin.org/forum/
Code: Select all
[T,mueff] = textread('data_easyspin_mueff.dat','%f %f');
...
FitOpt.OutArg = [1 1];
FitOpt.nKnots = 101;
esfit('constrainJg',mueff,Sys1,Vary1,Exp,[],FitOpt);
esfit
.curry
capable of returning chi*T directly.Code: Select all
[T,chiSI] = textread('data_easyspin_chiSI.dat','%f %f');
chiSIT=chiSI.*T
Exp.Temperature = T;
Code: Select all
esfit('constrainJg_isosceles_xT',chiSIT,Sys1,Vary1,Exp,[],FitOpt);
Code: Select all
chiSI = 0;
T = 0;
chiSIT = chiSI.*T;
y = chiSIT;
[x,y,z] =
and defined z = chiSIT;
. This threw the following error:Code: Select all
Undefined function or variable "chizzT_SI".
Error in curry (line 305)
Error in constrainJg_isosceles_xT (line 8)
[x,y,z] = curry(fullSys,Exp,Opt);
Error in esfit>assess (line 808)
Error in esfit_simplex (line 77)
Error in esfit>runFitting (line 660)
Error while evaluating UIControl Callback
Code: Select all
function [x,y] = constrainJg_isosceles_xT(Sys1,Exp,Opt);
fullSys = Sys1;
fullSys.g = [Sys1.g];
fullSys.ee = [Sys1.Ja Sys1.Ja Sys1.Jb];
chiSI = 0;
T = 0;
chiSIT = chiSI.*T;
x = chiSIT;
[x,y] = curry(fullSys,Exp,Opt);
return
FitOpt.OutArg = [2 1];
.curry
, which is not chi*T. To get chi*T, you need to call curry
before you calculate chiSIT
.