Code covered by the BSD License  

Highlights from
MRI Brain Segmentation

image thumbnail

MRI Brain Segmentation

by

 

06 May 2004 (Updated )

Neuroimaging Case Study for seminars and webinars.

movex_text(h_txt,x_pos)
function movex_text(h_txt,x_pos)
%MOVEX_TEXT moves text horizontally.

% Copyright 2004-2010 The MathWorks, Inc.

FmtSpec=getappdata(get(get(h_txt,'parent'),'parent'),'FmtSpec');
msg=sprintf(FmtSpec,x_pos);
pos=get(h_txt,'position');
pos(1)=x_pos;
set(h_txt,'Position',pos,'String',msg)

Contact us