Skip to content

MATLAB

MATLAB scripts currently provide the main preprocessing path for WILD recordings.

Scripts

Script Purpose
WILD_PreProcess.m Generate corrected headers, timing files, and event outputs.
WILD_PreProcessFolder.m Process multiple recordings.
WILD_ReadHeader.m Read WILD parameter headers.
WILD_processIMU.m Process IMU data.
WILD_scaleIMU.m Scale IMU signals.
WILD_genIntanHeader.m Generate Intan-compatible header output.

Minimal Workflow

cd("C:\code\github\Neurologger\Code");
recording_path = "C:\WILD\example_recording";
WILD_PreProcess(fullfile(recording_path, "amplifier.dat"));
WILD_processIMU(fullfile(recording_path, "analogin.dat"), 100);

Adjust paths and sampling assumptions for your recording mode.

Expected Folder Layout

Input

example_recording/
  amplifier.dat
  analogin.dat
  CE_params.bin
  adc.dat           # optional
  misc.dat          # optional

Outputs generated by the public MATLAB path

example_recording/
  time.dat
  info.rhd
  IMU.mat
  device_event.d01.evt   # if digital events are present
  device_event.s01.evt   # if stimulation-related event files are generated

Known-Good First Pass

  1. Run WILD_PreProcess on amplifier.dat.
  2. Confirm that time.dat and info.rhd appear.
  3. Run WILD_processIMU on analogin.dat.
  4. Confirm that IMU.mat is generated.
  5. Keep the raw export unchanged and write downstream results into a separate analysis copy when reprocessing.