# restrans.m

Resonator transform - converts a waveform from its ideal shape that is emitted by the instrument into the real shape that makes it through the resonant circuit of the probe. Phase-insensitive linear response with an exponential convolution kernel is assumed.

## Syntax

    [time_grid_out,pulse_out]=restrans(time_grid_in,pulse_amp_in,tau)


## Arguments

      time_grid_in   - a row vector of time values for each point
in the input waveform

pulse_amp_in   - a row vector containing the pulse waveform
amplitudes issued by the console

tau            - characteristic time of the probe circuit


## Outputs

      time_grid_out  - a row vector of time values for each point
in the input waveform, calculated as the
input grid with 5*tau appended to it

pulse_amp_out  - a row vector containing the pulse waveform
amplotudes seen by the sample in the probe


## Examples

The following output is produced by fundamentals/restrans_test.m example file:

## Notes

The more accurate phase-sensitive version of this transform is published in (http://dx.doi.org/10.1016/j.jmr.2015.12.014) - it is on our todo list, please get in touch of you need it.