Global Index (short | long) | Local contents | Local Index (short | long)
iduikeyp
IDUIKEYP The ident keypress function callback.
This function calls | This function is called by |
---|---|
function iduikeyp % L. Ljung 9-27-94 % Copyright (c) 1986-98 by The MathWorks, Inc. % $Revision: 2.4 $ $Date: 1997/12/02 03:41:15 $ global XIDhw if gcf~=get(0,'pointerwindow') return end usd=get(XIDhw(3,1),'userdata'); ch=get(gcf,'CurrentCharacter'); if isempty(ch), ch=' ';end if any(ch==['s','c','q','d','m']) iduistat('Key press acknowledged, compiling...') if ch=='s', if isempty(usd) errordlg('You must first import a data set.'); iduistat('');return end eval('iduinpar(''spa'');') elseif ch=='c' if isempty(usd) errordlg('You must first import a data set.'); iduistat('');return end eval('iduinpar(''cra'');') elseif ch=='q' if isempty(usd) errordlg('You must first import a data set.'); iduistat('');return end eval('iduiqs') elseif ch=='d' % eval('iduifile(''load_iodata'');') eval('iduifile(''load_data'');'),iduistat('') elseif ch=='m' eval('iduifile(''load_model'');'),iduistat('') end else iduistat(['The character ',ch,' is not a valid hotkey']) end