AFNI Message Board

Dear AFNI users-

We are very pleased to announce that the new AFNI Message Board framework is up! Please join us at:

https://discuss.afni.nimh.nih.gov

Existing user accounts have been migrated, so returning users can login by requesting a password reset. New users can create accounts, as well, through a standard account creation process. Please note that these setup emails might initially go to spam folders (esp. for NIH users!), so please check those locations in the beginning.

The current Message Board discussion threads have been migrated to the new framework. The current Message Board will remain visible, but read-only, for a little while.

Sincerely, AFNI HQ

History of AFNI updates  

|
October 16, 2015 12:21PM
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
Subject Author Posted

RetroTS error

sdb99 October 16, 2015 12:21PM

Re: RetroTS error

rick reynolds October 16, 2015 04:28PM