Terrance:
see the message below.
put the attached file, courtesy of Ged Ridgway, somewhere in your matlab6.5
path. restart matlab.
try spm5 and see if that fixes the problem.
the matlab7 version of isvector is a compiled function, but the above should
work well enough.
If you upgrade to matlab7 remember to get rid of this ad hoc version.
good luck
darren
> -----Original Message-----
> From: SPM (Statistical Parametric Mapping)
> [mailto:[log in to unmask]] On Behalf Of Ged Ridgway
> Sent: Thursday, March 01, 2007 5:28 AM
> To: [log in to unmask]
> Subject: Re: [SPM] BUg in fmri model setup after update?
>
> Hi Martin,
>
> You could try the attached replacement -- just save it in
> your spm5 directory.
>
> Of course, there might be other problems with SPM5rev748 on
> Matlab 6.5... It sounds like 6.5.1 is officially sanctioned:
> http://www.jiscmail.ac.uk/cgi-bin/webadmin?A2=ind0702&L=spm&P=48169
> though I'm not sure whether this version contains isvector or
> not -- can anyone confirm?
>
> Best,
> Ged.
>
>
>
>
function is = isvector(v)
% isvector(v) returns true if v is 1-by-n or n-by-1 where n>=0
% Author: Ged Ridgway
% vec if just two dimensions, and one (or both) unity
is = length(size(v)) == 2 && (size(v,1) == 1 || size(v,2) == 1);
|