Whenever I run in batch mode with a script file (i.e. spm_bch('lindtest')) I get
warnings about using feval on script names. In matlab 6.1 the batch would still
run, but in matlab 6.5 it stops, complaining about line 47 in spm_bch_bchmat.m,
which is an feval statement. Changing the script to a function did not cure it.
Does anyone know how to fix this?
Jim Lee
Univ. of Utah
>> path(path,'/home/mirl/jim/spm99');
>> spm_bch('lindtest');
Warning: feval on script names will not work, or may work differently,
in a future version of MATLAB, due to interpreter/compiler consistency
requirements. To make your code insensitive to any change and to
suppress this warning message:
- Either change the script to a function (if you might eventually want
to compile the function that makes the call on feval),
- or use eval instead of feval (if compilation is not an issue).
The script file in question is /v/raid1a/jim/lindtest/lindtest.m.
(Type "warning off MATLAB:warn_parse_feval_script" to suppress this warning.)
> In /home/mirl/jim/spm99/spm_bch_bchmat.m at line 47
In /home/mirl/jim/spm99/spm_bch.m at line 85
??? Error using ==> spm_bch
Can't evaluate lindtest of 'analyses'
|