Navigation

Operators and Keywords

Function List:

C++ API

strcat.m File Reference


Functions

 elseif (nargin > 1) numstrs(nargin)=0
 elseif (isreal(varargin{nv})) varargin
 elseif (isempty(varargin{nv})) varargin
 elseif (iscell(varargin{nv})) allchar
else error ("strcat: inputs must be strings or cells of strings")
 numstrs (nv)
else error ("strcat: arguments must be the same size, or be scalars")
endif endfor endfor if (allchar) st
endif endif else print_usage ()
endif endfunction !assert (strcat("ab ","ab "),"abab")%!assert(strcat(
 !assert (all(strcmp(strcat("a",{"bc","de"},"f"),{"abcf","adef"})))%!assert(all(strcmp(strcat(["a"
 !assert (all(strcmp(strcat({"a","bb"},"ccc"),{"accc","bbccc"})))%!assert(all(strcmp(strcat("a"
 !assert (strcat(1, 2), strcat(char(1), char(2)))%!assert(strcat(''

Variables

function st
 allchar = true
for nv
endfor n = find (numstrs == max (numstrs), 1)
 maxstrs = numstrs (n)
 dim = dims{n}
for ns
 ab
 b
 c

Function Documentation

!assert ( strcat(1, 2)  ,
strcat(char(1), char(2))   
)

!assert ( all(strcmp(strcat({"a","bb"},"ccc"),{"accc","bbccc"}))   ) 

Type Constraints

!assert ( all(strcmp(strcat("a",{"bc","de"},"f"),{"abcf","adef"}))   ) 

Type Constraints

endif endfunction !assert ( strcat("ab ","ab ")  ,
"abab"   
)

elseif ( iscell(varargin{nv})   ) 

elseif ( isempty(varargin{nv})   ) 

elseif ( isreal(varargin{nv})   ) 

elseif ( nargin  ,
 
) [pure virtual]

else error ( "strcat: arguments must be the same   size,
or be scalars"   
)

else error ( "strcat: inputs must be strings or cells of strings  ) 

endif endfor endfor if ( allchar   ) 

numstrs ( nv   ) 

endif endif else print_usage (  ) 


Variable Documentation

ab

allchar = true

b

c

dim = dims{n}

maxstrs = numstrs (n)

endfor n = find (numstrs == max (numstrs), 1)

Initial value:

 1:maxstrs
        for nv = 2:nargin
          if (size_equal (st, varargin{nv}))
            st{ns} = [st{ns}, varargin{nv}{ns}]

Initial value:

 1:nargin
        if (ischar (varargin{nv}))
          varargin{nv} = cellstr (varargin{nv})

Initial value:

 strcat (varargin)

  if (nargin > 0)
    if (nargin == 1)
      st = varargin{1}