Examples

Spintuition ships with a progression of example sequences, from basic MR physics to complete imaging sequences.

Choose Basic Examples on the welcome screen to step through the A-series in the expanded Spins view, using Previous, Repeat and Next. Any example can also be loaded from the Sequences library (the sequence icon at the top of the Full View), where the RF and gradient waveforms are shown alongside the spins.

Every example is a standard Pulseq .seq file generated by a MATLAB script. Simmr directives within the .seq file set the spin matrix, relaxation and view.

The examples may change between versions; a typical list is given below.

Expanded Spins view showing a single spin during excitation and relaxation
Expanded Spins view

A — Basic physics

ExampleMatrixWhat it shows
A Polarization1×1×1In a magnetic field B0, protons align with an excess in one direction — the magnetization, loosely called “spins”, which act as small dipoles.
A0 Excitation1×1×1An RF pulse tips the spin from z into the transverse plane (here along x), where it generates a signal.
A1 Precession1×1×1Magnetization precesses about z in the lab frame, inducing the MRI signal in a receive coil. Toggle the lab frame off to see the simpler rotating frame.
A2 x Gradient5×1×1With Gx on, spins rotate at different rates depending on x position. With Phase Gray shading the gray levels track phase.
A3 x Gradient (2D)5×5×1The same gradient in 2D: all spins along y at one x location rotate at the same rate.
A4 y Gradient (2D)5×5×1A Gy gradient, so the phase variation is now along y.
A5 Excitation/Relaxation1×1×1After excitation, transverse magnetization decays with T2 while longitudinal magnetization recovers with T1. Try the lab frame, B1 and trails.
A6 Complete2×2×2End of the basic series — move on to the Full Tour, or the Full View to see the RF and gradient waveforms.

B — Image encoding

Intuition for how images are encoded with gradient-induced phase. Best viewed in the Full View so the waveforms are visible.

ExampleMatrixWhat it shows
B1 2×1 Encoding2×1×1Two spins A and B: the signal is A+B at the start of the readout and i(A−B) at the end, so both amplitudes can be recovered.
B2 2×2 Encoding2×2×1Four spins encoded as A+B+C+D, i(A−B+C−D), i(A+B−C−D) and A−B−C+D — a 2×2 Fourier transform.
B3 5×5 Encoding5×5×1A real 5×5 imaging sequence, pausing at each of the 25 samples so you can see the spin configuration. A 5×5 FFT would reconstruct the image.

C — Excitation, RF and relaxation

Intuition for selective excitation with RF and gradients, RF phase, relaxation and refocusing.

ExampleMatrixWhat it shows
C1 Simple Selective Excitation3×1×3Two 45° tips with a gradient in between: spins at z=0 tip 90° while off-axis spins do not.
C2 Sinc Excitation3×1×7A sinc RF pulse excites a clean slice, followed by a refocusing gradient. Try increasing the z matrix.
C3 T2 Decay2 objectsAfter a 90° excitation, two spins with different T2 (10 and 50 ms) decay at different rates, shown with Gray |Mxy| shading.
C4 Inversion2 objectsA 180° pulse inverts the magnetization; at ~0.7·T1 the shorter-T1 spin passes through zero (the null point used to suppress a tissue), shown with Gray |M| shading.
C5 RF Phase1×1×1Five 90° pulses with phases 0°, 90°, 180°, 30° and 60° show how RF phase sets the rotation axis.
C6 Spin Echo3×1×5A 90° excitation, repeatable dephasing, then a 180° refocusing pulse that brings the spins back into a spin echo. Adjust Δf(r)σ in the waveform controls to change the dephasing.

D — Scaling

ExampleMatrixWhat it shows
D Scaling5×1×5A realistic 25 cm FOV, 1 mm, 1 ms readout, 2 mm slice sequence scaled by 4/250, so 4 cycles accrue across the FOV and the slice becomes ~120 mm.

E — Advanced sequences

ExampleMatrixWhat it shows
EPI10×10×1A 90° excitation followed by an echo-planar readout; the readout alternates every 2 ms and Gy blips step through 10 k-space lines.
Spiral10×10×1Gx and Gy oscillate together so k-space is covered by a spiral from the center outward, in one shot.
CPMG5×5×1A 90° followed by a train of refocusing pulses (150°, then 120°) every 5 ms with Cartesian readouts.
Balanced SSFP1×1×3From equilibrium, spins excite, precess and relax toward a repeating steady state.
Full View on iPad showing the D Scaling example
D Scaling in the Full View

You can download/modify the examples here.