Skip to content
jamesjun edited this page Dec 6, 2017 · 1 revision

Calculate and subtract the common average reference (CAR) if P.vcCommonRef == 'mean'. Skipped if P.vcCommonRef == 'none'.

Syntax

  • [mnWav1, vnWav1_mean] = wav_car_(mnWav1, P)

Input

  • mnWav1: filtered traces (nSamples_load x nSites: int16)
  • P: Parameters struct

Output

  • mnWav1: CAR subtracted waveform (nSamples_load x nSites: int16)
  • vnWav2_mean: mean across all sites excluding the bad sites (P.viSiteZero). (nSamples_load x 1: int16)
Clone this wiki locally