Dear Fred,
as pointed out by Stephen, MATLAB bsxfun function was introduced in
MATLAB 7.4 (R2007a) so it won't work with earlier versions. Sorry about
that.
You can safely revert to the previous implementation of the
spm_detrend.m function, see attachment.
If you run:
>> spm_check_installation full
and are not using the attached file in your SPM8 installation then you
should get a warning of it not being up to date.
All the best,
Guillaume.
On 07/04/11 20:48, Fred Sanders wrote:
> Hi All,
>
> When I try to estimate previously specified DCMs, I am getting a new
> error - see below. Is this new error from the new SPM8 upgrades? Any
> suggestions??
>
> ??? Undefined command/function 'bsxfun'.
>
> Error in ==> spm_detrend at 33
> y = bsxfun(@minus, x, mean(x));
>
> Error in ==> spm_dcm_estimate at 97
> Y.y = spm_detrend(Y.y);
>
> Error in ==> spm_dcm_ui at 131
> spm_dcm_estimate(P{i});
>
>
>
> Thanks!!!
--
Guillaume Flandin, PhD
Wellcome Trust Centre for Neuroimaging
University College London
12 Queen Square
London WC1N 3BG
|