Navigation

Operators and Keywords

Function List:

C++ API

isstrprop.m File Reference


Functions

otherwise error ("isstrprop: invalid predicate")
endswitch else print_usage ()
endif endfunction!error
< invalid predicate > 
isstrprop ("abc123","foo")
 !assert (isstrprop("abc123","alpha"), logical([1, 1, 1, 0, 0, 0]))

Variables

function retval

Function Documentation

!assert ( isstrprop("abc123","alpha")  ,
logical([1, 1, 1, 0, 0, 0])   
)

otherwise error ( "isstrprop: invalid predicate"   ) 

endif endfunction !error<invalid predicate> isstrprop ( "abc123"  ,
"foo"   
)

endswitch else print_usage (  ) 


Variable Documentation

case xdigit retval

Initial value:

 isstrprop (str, pred)

  if (nargin == 2)
    switch (pred)
      case "alpha"
        retval = isalpha (str)