# fieldsweep.m

Field sweep EPR experiment using steady state formalism. This function solves the steady-state Liouville-von Neumann equation for the amplitude of the coil vector as a function of the applied magnetic field.

## Syntax

    [x_axis,spec]=fieldsweep(spin_system,parameters)


## Arguments

     parameters.rho0          - initial condition

parameters.coil          - detection state

parameters.grid          - powder grid

parameters.rframe_order  - rotating frame correction
order

parameters.sweep         - sweep extents around centre
field, two-element vector, Tesla

parameters.mw_pwr        - microwave power, Hz

parameters.npoints       - number of points in the sweep


## Outputs

     x_axis - spectrum X axis in Tesla

spec   - amplitudes of the coil state at each point of the sweep


## Examples

See fieldsweep_nitroxide.m file in examples/esr_solids directory.

## Notes

This function should be called directly without the powder wrapper. It implements the limit of infinitely slow field scan.