Dear G,
I looked at this function spm5spike.m from here:
https://www.jiscmail.ac.uk/cgi-bin/webadmin?A2=spm;d4dd4c8c.0902
I indeed had to replace finite() with isfinite() but nothing concerning
the output of spm_vol: what are you referring to there?
Looking at the code, it seems that line 81 should be changed to exchange
the two input arguments of setdiff():
invalid = setdiff(1:dim(3),valid_slices);
Not sure this is related to your problem though.
Best regards,
Guillaume.
On 24/11/16 20:40, gj wrote:
> Hi,
>
> I'm trying to run the very handy spm5spike with SPM 12 in Matlab 2016 (had to change a few minor things like the output of spm_vol seems slightly different and the Matlab command finite() has been deprecated), but it fails with the error
>
> -------
> Output argument "nv" (and maybe others) not assigned during call to "spm5spike>normit".
>
> Error in spm5spike (line 105)
> Ndmean = normit(diff(Mean_result'),normflag);
> ---------
>
> where
> diff(Mean_result') = [ ]
>
> I'm not sure exactly what this section of code is doing, aside from the comment:
>
> % Added by Rik to stop normit failing when a slice has zero mean
> % (eg due to movement out of field of view)
>
> Has anyone else had this problem or any advice on how to get it to work?
>
> Thanks very much in advance!
> g
>
--
Guillaume Flandin, PhD
Wellcome Trust Centre for Neuroimaging
University College London
12 Queen Square
London WC1N 3BG
|