I'm trying to run RetroTS in Matlab and I get the following error:
>> RetroTS(Opt);
Opt =
Cardfile: 'P3_Run1_Card.dat'
Respfile: 'P3_Run1_Resp.dat'
PhysFS: 40
Nslices: 30
VolTR: 2
Quiet: 0
err: 1
zerophaseoffset: 0
SliceMajor: 1
RVTshifts: [0 5 10 15 20]
ResampFS: 40
RespCutoffFreq: 3
CardCutoffFreq: 3
ResamKernel: 'linear'
FIROrder: 40
Demo: 0
Prefix: 'oba'
Resp_out: 1
Card_out: 1
RVT_out: 1
SepDups: 0
SliceOffset: [30x1 double]
SliceOrder: 'alt+z'
Slice timing:
ans =
0
1.0000
0.0667
1.0667
0.1333
1.1333
0.2000
1.2000
0.2667
1.2667
0.3333
1.3333
0.4000
1.4000
0.4667
1.4667
0.5333
1.5333
0.6000
1.6000
0.6667
1.6667
0.7333
1.7333
0.8000
1.8000
0.8667
1.8667
0.9333
1.9333
??? Attempted to access ppp(0); index must be a positive integer or logical.
Error in ==> zglobb at 80
if (ppp(length(ppp)) ~= filesep),
Error in ==> PeakFinder at 66
l = zglobb(vvec);
Error in ==> RetroTS at 274
[R,e]= PeakFinder(Opt.Respfile,OptR);
Suggestions about what I may be doing wrong would be appreciated.
Thanks.