Give a field array to garlic

General forum for EasySpin: questions, how to's, etc.
Post Reply
pegli
Newbie
Posts: 3
Joined: Sat Sep 30, 2017 8:08 am

Give a field array to garlic

Post by pegli »

Hello,
currently I'm trying to get into Easyspin for doing simulations with garlic. In the documentation I found only information how to provide (for a field swept spectrum) either center frequency + sweep with + npoints or lowest freq + highest freq + npoints. That's not what I want to give to the simulation. Is it possible to provide an array of field values which is then used to simulate the spectrum? My problem is, that I don't want to use equispaced field values.

Thank's a lot for any informations!

Yours,

Peter
Stefan Stoll
EasySpin Creator
Posts: 1108
Joined: Mon Jul 21, 2014 10:11 pm
Location: University of Washington

Re: Give a field array to garlic

Post by Stefan Stoll »

Simulate the spectrum with sufficient resolution and use 1D interpolation to obtain it over the field values you are interested in.

Code: Select all

myB = .. % insert your non-uniform field vector here (in mT)
Exp.Range = [min(myB) max(myB)];
[B,spc] = garlic(...);
myspc = interp1(B,spc,myB);
Post Reply