Greetings,
I am using RetroTS.m for the first time, trying to follow my notes from class, and it seems I may be missing a step. After entering matlab7 from the folder with the physiological data, I add:
path (path, '~/afni_matlab')
Opt.PhysFS = 1/0.02
Opt.Nslices = 38
Opt.VolTR = 2.3
Opt.Respfile = 'Resp_epitTRslt_scan_3.dat'
Opt.Cardfile = 'ECG_epitTRslt_scan_3.dat'
RetroTS(Opt)
I then receive an error:
??? Undefined command/function 'fir1'.
Error in ==> PeakFineder at 59
b = fir1(Opt.FIROrder, w, 'low'); %FIR filter of order 40
Error in ==> RetroTS at 183
R = PeakFinder(Opt.Respfile,OptR);
Which step am I missing or am I making some other kind of other error?
Thanks for your help.