# dwi.m

Diffusion weighted 2D imaging pulse sequence with variable diffusion encoding direction.

## Syntax

    mri=dwi(spin_system,parameters,H,R,K,G,F)


## Description

This sequence must be called from the imaging() context, which would provide H,R,K,G, and F.

## Arguments

  parameters.diff_g_amp   - a vector of diffusion gradient
amplitudes in X and Y, T/m

amplitude, T/m

parameters.diff_g_dur   - the duration of the diffusion

parameters.pe_grad_dur  - the duration of the phase encoding

parameters.image_size   - number of points in each dimension
of the resulting image


## Outputs

  mri - MRI image with square sinebell apodisation.


## Examples

See diff_weighted_2d.m file in examples/imaging directory.