#pragma rtGlobals=3 // Use modern global access method and strict wave access. // ********* Falling exponential baseline ********* Function/S Exponential_BLFuncInfo(InfoDesired) Variable InfoDesired String info="" switch(InfoDesired) case BLFuncInfo_ParamNames: info = "y0;A;tau" break; case BLFuncInfo_BaselineFName: info = "Exponential_BLFunc" break; endswitch return info end Function Exponential_BLFunc(s) STRUCT MPF2_BLFitStruct &s return s.cWave[0]+s.cWave[1]*exp(-s.x/s.cWave[2]) end