quick_start

quick_start()

QUICK_START Launch a GUI to specify a spindle-dynamics model and generate an overview figure

Usage:

quick_start

Inputs:

none

Outputs:

none (side effects only - opens a uifigure and produces an overview figure)

Notes

GUI steps:
  1. load data (bundled example or user data)

  2. choose model factors (SOphase, stage, SOpower, history)

  3. choose history order if history is selected

  4. choose interaction terms

Clicking “Run the Model” triggers the pipeline and renders the overview figure.

To load user data, the .mat file must contain EEG, Fs, stage_val, and stage_time (variable names are matched case-insensitively):

EEG : ‘EEG’, ‘eeg_data’, ‘raw_EEG’, ‘data’ Fs : ‘Fs’, ‘sampling_rate’ stage_val : ‘stage_val’, ‘stage_vals’, ‘stages’, ‘stage’, ‘stageval’, ‘stagevals’ stage_time : ‘stage_time’, ‘stage_t’, ‘time_stages’, ‘stage_times’

Accompanies Chen et al., PNAS 2025.

See also: Example_Script, specify_mdl, preprocessToDesignMatrix

∿∿∿ Prerau Laboratory MATLAB Codebase · sleepEEG.org ∿∿∿