StollLab / EasySpin

MATLAB toolbox for Electron Paramagnetic Resonance (EPR) spectroscopy
http://easyspin.org
MIT License
48 stars 25 forks source link

Microwave phase is not working for a single-line spectrum #333

Open stestoll opened 3 months ago

stestoll commented 3 months ago

The following should give two dispersion spectra (Exp.mwPhase=pi/2), but the one without Lorentzian broadening incorrectly returns the absorption spectrum.

clear, clc, clf

Exp.mwFreq = 9.5;
Exp.Range = [335 343];
Exp.mwPhase = pi/2;

Sys.lwpp = [1 0];
[B,spc_abs] = pepper(Sys,Exp);

Sys.lwpp = [1 0.1];
[B,spc_dis] = pepper(Sys,Exp);

plot(B,spc_abs,B,spc_dis);
legend('only Gaussian','incl Lorentzian')