Page 1 of 1
Error using esfit First argument must be numeric experimental data in the form of a vector.
Posted: Thu Nov 16, 2023 12:03 am
by konyenwe@unr.edu
Hi All
please i need some good help
i have been getting this error and i don't know how to solve iT. I'm very new to Easyspin
"Error using esfit
First argument must be numeric experimental data in the form of a vector.
Error in untitled2 (line 42)
esfit(@garlic, spc, Sys0, Vary, Exp);
Re: Error using esfit First argument must be numeric experimental data in the form of a vector.
Posted: Thu Nov 16, 2023 12:06 am
by konyenwe@unr.edu
Here is my code
[B, spc] = eprload('BTR.DTA');
% plot(B, spc);
Exp.mwFreq = 9.5;
Exp.Range = [min(B), max(B)]; % mT
Exp.nPoints = numel(spc);
Exp.Temperature = 298;
Sys0.g = [2.005, 2.003, 2.002];
Sys0.Nucs = '14N,14N,14N';
Sys0.A = [20, 20, 8];
Sys0.lwpp = 0.5;
Vary.g = [0.001, 0.001, 0.001];
Vary.A = [4, 4, 8];
esfit(@garlic, spc, Sys0, Vary, Exp);
Re: Error using esfit First argument must be numeric experimental data in the form of a vector.
Posted: Thu Nov 16, 2023 2:53 pm
by thanasis
esfit(spc,@garlic,{Sys0,Exp},{Vary});
Re: Error using esfit First argument must be numeric experimental data in the form of a vector.
Posted: Wed Apr 10, 2024 6:59 am
by fernney
thanks, problem solved
thanasis wrote: ↑Thu Nov 16, 2023 2:53 pm
esfit(spc,@garlic,{Sys0,Exp},{Vary});