Hello!
Matlab 6 under windows OS already has predefined contrast.m function in the
matlab toolbox.
In SnPM, CONTRAST is regarded as a function not as a variable. The upper
character and lower character is regarded as same in Windows.
Therefore, CONTRAST variable should be renamed such as sCONTRAST( in my
case) or the contrast function should be cleared out from the memory.
In addition,
some lines that include 'HC' should be changed to 'H C'. For example,
ResSS = sum((X - [HC B G]*BETA).^2); in spm_snpm.m
should be changed to
ResSS = sum((X - [H C B G]*BETA).^2);
HaeJeong Park
[log in to unmask]
Dept. of Biomedical Engineering,
Seoul National University
|