# slice_phase_enc.m

3D MRI pulse sequence, with a slice selection stage followed by phase-encoded acquisition in the slice selected.

## Syntax

    mri=slice_phase_enc(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.ss_grad_amp   -  the amplitude of slice selection

parameters.ss_grad_dur   -  the duration of the slice selection

parameters.pe_grad_dur   -  the duration of the phase encoding

seconds

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

parameters.gs_ampl       -  direction of the slice selection

parameters.gp_ampl       -  direction of the phase encoding

a three-element unit vector

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


## Outputs

 mri - MRI image of the slice with square sine bell apodisation
in the k-space.


## Examples

See phase_enc_3d.m file in examples/imaging directory.

## Notes

This function benefits significantly from GPU processing.