esfit giving flatline
Posted: Sun Feb 17, 2019 8:38 pm
Hi, I recently switched from a Mac running
El Capitan MATLAB R2015b EasySpin 5.2.21
to a linux running on
Centos 6.10 MATLAB R2018b EasySpin 5.2.24.
I copied my old scripts and code to the new workstation and was testing them.
When using esfit (with garlic), the simulation spectrum is always a flatline in the GUI. Garlic alone works fine (see below image), and typing 'easyspin' in the command windows doesn't give any warnings. Has anyone encountered this problem before?
Not sure how to proceed now, should I try recompiling EasySpin or something?
I've also attached my code and test file for reference below.
El Capitan MATLAB R2015b EasySpin 5.2.21
to a linux running on
Centos 6.10 MATLAB R2018b EasySpin 5.2.24.
I copied my old scripts and code to the new workstation and was testing them.
When using esfit (with garlic), the simulation spectrum is always a flatline in the GUI. Garlic alone works fine (see below image), and typing 'easyspin' in the command windows doesn't give any warnings. Has anyone encountered this problem before?
Not sure how to proceed now, should I try recompiling EasySpin or something?
I've also attached my code and test file for reference below.
Code: Select all
%load spectrum
[B,spc,Param]=eprload();
%read-in experiment parameters
Exp.mwFreq=Param.MWFQ/10^9;
Exp.Range = [Param.XMIN/10 (Param.XMIN+Param.XWID)/10];
Exp.nPoints = Param.XPTS;
%setup initial guess
Sys.g = 2.002;
Sys.Nucs = '1H,1H,1H,14N,14N,B';
Sys.A = [mt2mhz(9.18/10,Sys.g) mt2mhz(2.18/10,Sys.g) mt2mhz(1.44/10,Sys.g) mt2mhz(3.60/10,Sys.g) mt2mhz(4.08/10,Sys.g) mt2mhz(5.61/10,Sys.g)];%1H,1H,14N,14N, B
Sys.n = [1 1 1 1 1 1];
Sys.lwpp = [0.11 0.024];
%setup vary range
Vary.g = 0.001;
Vary.A = [1 1 0 0 0 0];
Vary.lwpp = [0.1 0.1];
%fit
esfit('garlic',spc,Sys,Vary,Exp);