Hi Maria,
If you just try the following *before* adding anything to the path, do
you get any errors?
test.testing = true
isfield(test, 'testing') % should get ans=1
isfield(test, 'tested') % should get ans=0
If the above gives errors, then can you email the output of the Matlab
command:
ver
but if the above code is fine, then I think it must be a problem with
paths, or unzipping of the SPM archive or similar. Perhaps not adding
the root Matlab directory will fix things? If not, check threads on
unzipping such as:
http://www.jiscmail.ac.uk/cgi-bin/webadmin?A2=ind0703&L=spm&P=5027
Best,
Ged.
<Maria> <Coletta> wrote:
> Hi,
>
> I just downloaded SPM5 today and in trying to open it in Matlab, was unable to do so.
>
> Here is what I'm entering into Matlab:
> addpath C:\MATLAB6p5\
> addpath C:\MATLAB6p5\spm5\
> spm fmri
>
> and this is what I get back:
> ??? Error using ==> isfield
> Not enough input arguments.
>
> Error in ==> c:\matLAB6p5\spm5\spm.m
> On line 1394 ==> if isstruct(xV) & isfield(xV,'v') & isfield(xV,'c')
>
> Error in ==> c:\matLAB6p5\spm5\spm.m
> On line 447 ==> disp(['(___/(__) (_/\/\_) ',spm('Ver'),' -
> http://www.fil.ion.ucl.ac.uk/spm/']);
>
> Error in ==> c:\matLAB6p5\spm5\spm.m
> On line 463 ==> spm('AsciiWelcome');
> fprintf('\n\nInitialising SPM');
>
>
> Any ideas?
>
> Thanks!
>
> Maria Coletta
>
|