This is a very useful thread, but I have to use different Exp variables for my components. I am fitting a multi-component oriented data with different orientation and here is the custom function I use:
Code: Select all
function [x,y] = pepperOG(Sys,Exp)
Exp.Ordering = @(phi,theta) gaussian(theta,Sys.theta0*pi/180,Sys.Dtheta*pi/180).*gaussian(phi,Sys.phi0*pi/180, Sys.Dphi*pi/180);
Exp.mwFreq = Sys.mwFreq;
[x,y] = pepper(Sys,Exp);
During the fitting I want to keep A and g tensors to be the same for all components, but still be varied. However, if I double the number of species:
Code: Select all
function [x,y] = dimer(Sys,Exp)
fullSys = Sys;
fullSys.g = [Sys.g; Sys.g]
fullSys.S = [1/2 1/2]
fullSys.A = [Sys.A, Sys.A];
fullSys.Nucs = '14N';
fullSys.ee=1e-3;
[x,y] = pepper(fullSys,Exp)
I cannot have different Exp variables for those species.
So my question is how to keep Exp.Ordering to be different for different components but still vary the same A and g tensors for all components.
This post explains how to perform multi-frequency fit, by merging axes while having two different Exp variables, but I have slightly different problem.