General forum for EasySpin: questions, how to's, etc.
agdicationionepr
Newbie
Posts: 3 Joined: Sat Nov 23, 2024 5:48 pm
Post
by agdicationionepr » Sat Nov 30, 2024 10:57 am
I am trying to apply some Lorentzian broadening to a system I am looking at, and I keep getting the error "Simulation function error: Too many input arguments"
Any ideas what could be causing this issue?
[B, spc] = eprload('AgII');
% Initial System for Fitting
Sys0.g = [2.209 2.072 2.031];
Sys0.S = 0.5;
%Sys0.A = mt2mhz([500, 4500]/10); %enter values in gauss
Sys0.A = [80 72.9 70.3; 40 57.2 43.1; 40 36.7 54.3]; %enter values in MHz
Sys0.Nucs = '107Ag, 14N, 14N'
Sys0.lw = [0 1];
%Initial Vary Windows
Vary.g = [0.1 0 0];
Vary.A = [30 0 0; 30 0 0; 30 0 0];
Vary.lw = [0 1];
%Experimental Parameters
Exp.Temperature = 80;
Exp.mwFreq = 9.647426
Exp.Range = [280 380]
esfit(spc,@pepper,{Sys0,Exp},{Vary})
Stefan Stoll
EasySpin Creator
Posts: 1120 Joined: Mon Jul 21, 2014 10:11 pm
Location: University of Washington
Post
by Stefan Stoll » Thu Jan 23, 2025 6:01 pm
Unclear what is going on. I cannot reproduce the error. The following works without error.
Code: Select all
clear, clc
Sys0.g = [2.209 2.072 2.031];
Sys0.S = 0.5;
Sys0.A = [80 72.9 70.3; 40 57.2 43.1; 40 36.7 54.3];
Sys0.Nucs = '107Ag,14N,14N';
Sys0.lw = [0 1];
Exp.Temperature = 80;
Exp.mwFreq = 9.647426;
Exp.Range = [280 380];
spc = pepper(Sys0,Exp);
Vary.g = [0.1 0 0];
Vary.A = [30 0 0; 30 0 0; 30 0 0];
Vary.lw = [0 1];
esfit(spc,@pepper,{Sys0,Exp},{Vary})