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
% vec if just two dimensions, and one (or both) unity
is = length(size(v)) == 2 && (size(v,1) == 1 || size(v,2) == 1);
|