Error using esfit First argument must be numeric experimental data in the form of a vector.

General forum for EasySpin: questions, how to's, etc.
Post Reply
konyenwe@unr.edu
Newbie
Posts: 5
Joined: Wed Nov 15, 2023 11:54 pm

Error using esfit First argument must be numeric experimental data in the form of a vector.

Post 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);

konyenwe@unr.edu
Newbie
Posts: 5
Joined: Wed Nov 15, 2023 11:54 pm

Re: Error using esfit First argument must be numeric experimental data in the form of a vector.

Post 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);

thanasis
Local Expert
Posts: 253
Joined: Thu Jan 21, 2016 6:28 am
Location: Strasbourg

Re: Error using esfit First argument must be numeric experimental data in the form of a vector.

Post by thanasis »

esfit(spc,@garlic,{Sys0,Exp},{Vary});

fernney
Newbie
Posts: 1
Joined: Tue Apr 09, 2024 6:31 am

Re: Error using esfit First argument must be numeric experimental data in the form of a vector.

Post by fernney »

thanks, problem solved

thanasis wrote: Thu Nov 16, 2023 2:53 pm

esfit(spc,@garlic,{Sys0,Exp},{Vary});

Post Reply