function setviewmode(vm) %SETVIEWMODE Set the view mode. % % SETVIEWMODE(MODE) % % setviewmode set the checked-on View menu item with the specified % UserData. % % See also: GETVIEWMODE SHOWIMAGE % % Claudio May 16 1995 % % % Copyright (c) 1995 by Claudio Rivetti and Mark Young % claudio@alice.uoregon.edu, mark@alice.uoregon.edu % global Handlefig mnb=findobj(finduimenu(Handlefig), 'label', 'View '); ch=get(mnb, 'children'); ck=findobj(ch, 'UserData', vm); set(ch, 'checked', 'off'); set(ck, 'checked', 'on'); return