Gauss and mT

General forum for EasySpin: questions, how to's, etc.
Post Reply
OldLady
Newbie
Posts: 2
Joined: Wed Nov 16, 2016 8:41 am

Gauss and mT

Post by OldLady »

I am new to easyspin, so forgive me if this question seems dumb. I have spectra from a Bruker Elexys system in the BES3T format. Importing spectra works fine (thank you!), but, alas, the field unit is Gauss. How do I do a spectral fitting when the field has to be in mT? I mean an actual fit, not just a simulation. Of course, I can export my spectrum to a text file, then divide all field values by 10 to give them the apropriate size. I just thought that would be a lot of extra work and was hoping there would be a better solution...
Stefan Stoll
EasySpin Creator
Posts: 1085
Joined: Mon Jul 21, 2014 10:11 pm
Location: University of Washington

Re: Gauss and mT

Post by Stefan Stoll »

Code: Select all

% Loading data
[B_G,spc] = eprload('mydata.DTA');   % load the data
B_mT = B_G/10;    % convert field values from gauss to millitesla

% Preparing for simulation/fit
Exp.Range = [min(B_mT) max(B_mT)];  % use min and max for the simulation/fit
Exp.nPoints = numel(B_mT);     % number of field points
OldLady
Newbie
Posts: 2
Joined: Wed Nov 16, 2016 8:41 am

Re: Gauss and mT

Post by OldLady »

Perfect! Thank you! :)
Post Reply