Navigation

Operators and Keywords

Function List:

C++ API

strtrim.m File Reference


Functions

endif if (ischar(s)) k
 if (isempty(s)||isempty(k)) s
endif elseif (iscell(s)) s
else error ("strtrim: expecting string argument")
endif endfunction!error
< Invalid call to strtrim > 
strtrim ()
!error< Invalid call to strtrim > strtrim ("abc","def")
 !assert (strtrim(" abc "),"abc")
 !assert (strtrim([" abc ";" def "]),["abc ";" def"])

Variables

function s

Function Documentation

!assert ( strtrim([" abc ";" def "])   ) 

!assert ( strtrim(" abc ")  ,
"abc"   
)

endif elseif ( iscell(s)   ) 

else error ( "strtrim: expecting string argument"   ) 

if ( isempty(s)||isempty(k  ) 

endif if ( ischar(s)   ) 

!error<Invalid call to strtrim> strtrim ( "abc"  ,
"def"   
)

endif endfunction !error<Invalid call to strtrim> strtrim (  ) 


Variable Documentation

else s

Initial value:

 strtrim (s)

  if (nargin != 1)
    print_usage ()