Cyril,
The file "spm_slect" in SPM8 doe snot have a line 122 it only has 100
lines.
Michael
Michael Froelich, MD MS
E-mail: [log in to unmask]
office: (205) 975-0145
On Sep 15, 2009, at 10:25 AM, cyril pernet wrote:
> Volkmar, Michael
>
> got the same with the matlab update and other functions of mine ..
> change line 122 in spm_select
>
> if ~finite(n(1)), n(1) = 0; end;
>
> to
>
> try
> if ~finite(n(1)), n(1) = 0; end;
> catch
> if ~isfinite(n(1)), n(1) = 0; end;
> end
>
> so that the function will handle both finite and isfinite depending
> the
> matlab version you'll be running ..
>
> cyril
>
>
>
>
> --
> Dr Cyril Pernet,
> fMRI Lead Researcher SINAPSE
> SFC Brain Imaging Research Center
> Division of Clinical Neurosciences
> University of Edinburgh
> Western General Hospital
> Crewe Road
> Edinburgh
> EH4 2XU
> Scotland, UK
>
> [log in to unmask]
> tel: +44(0)1315373661
> http://www.sbirc.ed.ac.uk/cyril
> http://www.sinapse.ac.uk/
>
>
> The University of Edinburgh is a charitable body, registered in
> Scotland, with registration number SC005336.
>
|