comparison scripts/strings/cstrcat.m @ 8442:502e58a0d44f

Fix docstrings, add examples, references and tests to string functions
author Thorsten Meyer <thorsten.meyier@gmx.de>
date Mon, 05 Jan 2009 08:11:03 +0100
parents 3422f39573b1
children eb63fbe60fab
comparison
equal deleted inserted replaced
8441:cc3ac5eb6be3 8442:502e58a0d44f
17 ## along with Octave; see the file COPYING. If not, see 17 ## along with Octave; see the file COPYING. If not, see
18 ## <http://www.gnu.org/licenses/>. 18 ## <http://www.gnu.org/licenses/>.
19 19
20 ## -*- texinfo -*- 20 ## -*- texinfo -*-
21 ## @deftypefn {Function File} {} cstrcat (@var{s1}, @var{s2}, @dots{}) 21 ## @deftypefn {Function File} {} cstrcat (@var{s1}, @var{s2}, @dots{})
22 ## Return a string containing all the arguments concatenated. For example, 22 ## Return a string containing all the arguments concatenated
23 ## horizontally. Trailing white space is preserved. For example,
24 ##
25 ## @example
26 ## @group
27 ## cstrcat ("ab ", "cd")
28 ## @result{} "ab cd"
29 ## @end group
30 ## @end example
23 ## 31 ##
24 ## @example 32 ## @example
25 ## @group 33 ## @group
26 ## s = [ "ab"; "cde" ]; 34 ## s = [ "ab"; "cde" ];
27 ## cstrcat (s, s, s) 35 ## cstrcat (s, s, s)
28 ## @result{} "ab ab ab " 36 ## @result{} ans =
37 ## "ab ab ab "
29 ## "cdecdecde" 38 ## "cdecdecde"
30 ## @end group 39 ## @end group
31 ## @end example 40 ## @end example
41 ## @seealso{strcat, char, strvcat}
32 ## @end deftypefn 42 ## @end deftypefn
33 43
34 ## Author: jwe 44 ## Author: jwe
35 45
36 function st = cstrcat (varargin) 46 function st = cstrcat (varargin)