Functions | |
if (char_arg||isnumeric(s)) if(!isempty(s)) if(char_arg) k | |
else | warning ("deblank: expecting character string argument") k |
endif | if (isempty(k)) s |
endif endif | elseif (iscell(s)) s |
else | error ("deblank: expecting character string argument") |
endif endfunction | !assert (strcmp(deblank(" f o o ")," f o o")) |
!assert (deblank([]),[])%!assert(deblank( | |
!error | deblank ("foo","bar") |
Variables | |
function | s |
endif | char_arg = ischar (s) |
!assert | ( | deblank([]) | ) |
!error deblank | ( | "foo" | , | |
"bar" | ||||
) |
if | ( | char_arg|| | isnumerics | ) |