Skip to content

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

@stestoll

Description

@stestoll

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')

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions