671
671
%Note that this case must come before the test for double below. In Matlab 5 logicals are also
672
672
%doubles but in Matlab 6.5 logicals are not doubles.
673
elseif islogical(arg) | (isa(arg,'double') & length(arg)==256) | (isa(arg,'uint8') & length(arg)==256)
673
elseif islogical(arg) || (isa(arg,'double') && length(arg)==256) || (isa(arg,'uint8') && length(arg)==256)
674
674
kbNameResult=KbName(find(arg));
676
676
%if the argument is a single double or a list of doubles (list of keycodes)
677
677
%or a single uint8 or list of uint8's (list of keycodes).
679
679
%single element, the base case, we look up the name.
682
682
error('Argument exceeded allowable range of 1-65536');
684
684
kbNameResult='Undefined';