Hello,
I am trying to use RetroTS function in Matlab.
i have added the afni toolbox to path as well.
Following is the synatx i am trying :
sn =
Respfile: 'Resp_epiRTwm2_scan_0004.1D'
Cardfile: 'ECG_epiRTwm2_scan_0004.1D'
VolTR: 2
Nslices: 44
PhyFS: 40
PhysFS: 4
>> RetroTS(sn)
This gives me following error:
Error using FIR1
Expected Wn to be an array with all of the values < 1.
Error in fir1>validateargs (line 208)
validateattributes(Wn,{'numeric'},{'real','finite','positive','>',0,'<',1},'FIR1','Wn');
Error in fir1>parseoptargs (line 147)
[Ftype,Wind,Scale] = validateargs(Wn,Ftype,Wind,Scale);
Error in fir1 (line 98)
[Ftype,Wind,SCALING] = parseoptargs(Wn,varargin{:});
Error in PeakFinder (line 64)
b = fir1(Opt.FIROrder, w, 'low'); %FIR filter of order 40
Error in RetroTS (line 281)
[R,e]= PeakFinder(Opt.Respfile,OptR);
And idea why i am getting this error. How can i get rid of it?
Thanks!
Suyash