Hmm...I have Matlab 6.5.0.180913a as well...yet I can display a variety
of spm2
files:
a swa file,
a beta file,
a mean file,
a 2D structural or a 3D spgr IF they were normalized or coregistered and
normalized and with no problem.
However, it looks like I get Cyril's error if I try to display my unnormalized
3d spgr, or my unnormalized 2D.
-Dianne
Dianne K. Patterson Ph.D.
Psychology, Room 217E
626-4571
Cognition and NeuroImaging Labs
University of Arizona
Tucson, AZ
Quoting Cyril Pernet <[log in to unmask]>:
>
>
> Someone should start ...
>
> Dear John and other SPM programmers,
>
> in the spm_format.man, we can read "The old SPM2 version of Analyze
> format can
> be read straight into SPM5" .. However, when I want to look at my data
> (display) it doesn't work ...
>
> I use Matlab 6.5.0.180913a r13
> I guess my problem comes from this version (and then it answers Diane's
> question) or maybe it is not so straight?
>
> Is there something to do before loading Analyze images?
>
> Thank you in advance,
> Best
> Cyril
> Running "Display Image"
> ??? Undefined function or variable 'nifti'.
>
> Error in ==> C:\MATLAB6p5\work\spm5b\spm_vol_nifti.m
> On line 16 ==> N = nifti(fname);
>
> Error in ==> C:\MATLAB6p5\work\spm5b\spm_vol.m (subfunc)
> On line 109 ==> else, V = spm_vol_nifti(p,n); end;
>
> Error in ==> C:\MATLAB6p5\work\spm5b\spm_vol.m (subfunc1)
> On line 72 ==> v = subfunc(P(i,:));
>
> Error in ==> C:\MATLAB6p5\work\spm5b\spm_vol.m (subfunc2)
> On line 60 ==> V = subfunc1(P);
>
> Error in ==> C:\MATLAB6p5\work\spm5b\spm_vol.m
> On line 46 ==> V = subfunc2(P);
>
> Error in ==> C:\MATLAB6p5\work\spm5b\spm_image.m
> On line 306 ==> if ischar(P), P = spm_vol(P); end;
>
> Error in ==> C:\MATLAB6p5\work\spm5b\spm_config_display.m (dispim)
> On line 91 ==> spm_image('init',job.data{1});
>
> Error in ==> C:\MATLAB6p5\work\spm5b\spm_jobman.m (run_struct1)
> On line 1345 ==> feval(prog,val);
>
> Error in ==> C:\MATLAB6p5\work\spm5b\spm_jobman.m (run_struct1)
> On line 1353 ==> run_struct1(c.val{i});
>
> Error in ==> C:\MATLAB6p5\work\spm5b\spm_jobman.m (run_struct1)
> On line 1353 ==> run_struct1(c.val{i});
>
> Error in ==> C:\MATLAB6p5\work\spm5b\spm_jobman.m (run_job)
> On line 381 ==> run_struct1(c);
>
> Error in ==> C:\MATLAB6p5\work\spm5b\spm_jobman.m (serial)
> On line 1746 ==> run_job(jobs);
>
> Error in ==> C:\MATLAB6p5\work\spm5b\spm_jobman.m
> On line 66 ==> serial(varargin{2:nargin});
>
> ??? Error while evaluating uicontrol Callback.
|