Print

Print


Jian,

I can only reproduce that problem if I run the command in a fresh Matlab session before starting SPM.  So try starting SPM first.  I'm guessing you're getting that error because spm_orthviews can't find the SPM Graphics window.

-Tom


On Mon, Jun 23, 2008 at 10:41 AM, jian chen <[log in to unmask]> wrote:
Hi experts,

Sorry that I re-sent the question again, since I still haven't solved the problem.


I have tried to add blobs to an image and using the way suggested in John's SPM Gems. But I got following errors. My matlab is 7.0.1 and spm5 update 1048.



P1 =/usr/local/spm5/templates/T1.nii,1

>> h = spm_orthviews('Image', P1,[0.05 0.05 0.9 0.9]);
??? Error using ==> axes

Invalid object handle.

Error in ==> spm_orthviews>specify_image at 736
       ax = axes('Visible','off','DrawMode','fast','Parent',st.fig,'DeleteFcn',DeleteFcn,...

Error in ==> spm_orthviews at 221
       H = specify_image(varargin{1});

Thanks for any help.

Jian

_________________________________________________________________
Free Windows Live software. Chat, search, share pics and more
http://get.live.com/



--
____________________________________________
Thomas Nichols, PhD
Director, Modelling & Genetics
GlaxoSmithKline Clinical Imaging Centre

Senior Research Fellow
Oxford University FMRIB Centre