git.schokokeks.org
Repositories
Help
Report an Issue
SVMCrossVal.git
Code
Commits
Branches
Tags
Suche
Strukturansicht:
87b08fd
Branches
Tags
master
SVMCrossVal.git
NIFTI_20090325
rri_zoom_menu.m
searchlight ready. missing nifti-image-write support. added timing to FBS
Christoph Budziszewski
commited
87b08fd
at 2009-03-30 17:54:25
rri_zoom_menu.m
Blame
History
Raw
% Imbed a zoom menu to any figure. % % Usage: rri_zoom_menu(fig); % % - Jimmy Shen (jimmy@rotman-baycrest.on.ca) % %-------------------------------------------------------------------- function menu_hdl = rri_zoom_menu(fig) if isnumeric(fig) menu_hdl = uimenu('Parent',fig, ... 'Label','Zoom on', ... 'Userdata', 1, ... 'Callback','rri_zoom_menu(''zoom'');'); return; end zoom_on_state = get(gcbo,'Userdata'); if (zoom_on_state == 1) zoom on; set(gcbo,'Userdata',0,'Label','Zoom off'); set(gcbf,'pointer','crosshair'); else zoom off; set(gcbo,'Userdata',1,'Label','Zoom on'); set(gcbf,'pointer','arrow'); end return % rri_zoom_menu