Search found 32 matches

by joscha_nehrkorn
Wed Jul 31, 2019 1:33 am
Forum: General forum
Topic: Converting from Matlab file to Bruker spectrometers file
Replies: 2
Views: 2065

Re: Converting from Matlab file to Bruker spectrometers file

If you want to fit your data using EasySpin, there is no need to convert it to the Bruker file format. Once you have it as an array in Matlab you are good to go. Anyhow, what did you try?
by joscha_nehrkorn
Wed Jul 31, 2019 1:21 am
Forum: General forum
Topic: Nuclear spin forbidden transitions
Replies: 2
Views: 1953

Re: Nuclear spin forbidden transitions

Levelsplot uses a threshold for plotting. This means all transitions are calculated, but only those with a transition probability above the threshold are displayed. However, if you want to see more (or all) transitions you can adjust that threshold. In the below example all possible transitions are ...
by joscha_nehrkorn
Tue Feb 06, 2018 9:47 am
Forum: General forum
Topic: globally fitting multiple spectra with esfit
Replies: 2
Views: 3314

Re: globally fitting multiple spectra with esfit

Have you tried the following? esfit('globalfit',[spec_X(:,2);spec_Q(:,2)]',Sys1,Vary1,Exp,SimOpt,FitOpt); Check the size of the different vectors: spec_X(:,2) should have size 4096 x 1, spec_Q(:,2) 3000 x 1. Then [spec_X(:,2);spec_Q(:,2)] should have 7096 x 1 and [spec_X(:,2);spec_Q(:,2)]' 1 x 7096.
by joscha_nehrkorn
Fri Apr 07, 2017 1:06 am
Forum: General forum
Topic: lsq1
Replies: 3
Views: 2558

Re: lsq1

You have to run esfit such that it returns the best-fit parameters in a structure. bestsys = esfit('pepper',sn,FitSys,Vary,Exp); The structure bestsys contain the best-fit parameters. The simplest way to store this information is to use the matlab command save. However, this will not generate a text...
by joscha_nehrkorn
Wed Mar 22, 2017 8:40 am
Forum: General forum
Topic: Calculate energy spectrum
Replies: 2
Views: 1606

Re: Calculate energy spectrum

Code: Select all

eig(sham(Sys,[0,0,0]))
gives you the eigenvalues of the Hamiltonian of the system Sys in zero field.
by joscha_nehrkorn
Tue Feb 21, 2017 7:33 am
Forum: General forum
Topic: pepper, 3d plot of Spec in terms of Gaussian and Lorentz lw
Replies: 2
Views: 1705

Re: pepper, 3d plot of Spec in terms of Gaussian and Lorentz

The error you reported here might be because at some point in your double loop both line widths were zero. EasySpin needs a finite line width to calculate a derivative spectrum.
Anyhow, you might be better of in fitting the line width using esfit.
by joscha_nehrkorn
Tue Feb 07, 2017 3:37 am
Forum: General forum
Topic: roadmap from single crystal rotation
Replies: 1
Views: 1521

Re: roadmap from single crystal rotation

Hi Dijana, it does work if you use rotN = [0 0 1]; However, the point is that in the example the resonance field is plotted as function of the angle theta. theta is defined as then angle between the z axis of the crystal frame and the z axis of the lab frame. By setting rotN along the z ais, theta i...
by joscha_nehrkorn
Mon Jan 23, 2017 4:34 am
Forum: General forum
Topic: How can I show the exact EPR spectrum in fitting panel
Replies: 3
Views: 2817

Re: How can I show the exact EPR spectrum in fitting panel

thanasis pointed out the wrong order in loading the file. Next you use the addnoise function with an assumed Signal-to-Noise ratio of 0.0000000000000000000000000000000000001. Is there any particular reason for that? To perform a fit the structure Exp should contain your experimental parameter. At le...
by joscha_nehrkorn
Tue Nov 08, 2016 8:53 am
Forum: General forum
Topic: Parallelization in Easyspin functions
Replies: 4
Views: 3460

Re: Parallelization in Easyspin functions

parfor does not like structures. You have to define the structure inside the loop explicit with the struct() command. The following workaround work:

Code: Select all

clear all

Exp.mwFreq = 9.6; 
Exp.Range = [0 500];
parfor i=1:20
  Sys = struct('g', 2*rand);
  s(i,:) = pepper(Sys,Exp);
end