Home > freetb4matlab > strings > strjoin.m

strjoin

PURPOSE ^

% joins the strings in @var{stringcell} with the @var{prefixstr} like the list-join

SYNOPSIS ^

function rval=strjoin(spacer,varargin)

DESCRIPTION ^

% -*- texinfo -*-
% @deftypefn {Function File} @var{rval}= {} strjoin(@var{prefixstr},@var{stringcell})
% @deftypefnx {Function File} @var{rval}= {} strjoin(@var{prefixstr},@var{varargs})
% joins the strings in @var{stringcell} with the @var{prefixstr} like the list-join
% function in Python; the second version allows error with variable number of arguments.
% Note that, if using cell-array as a second argument, only 2 arguments are accepted.
% Also note that, both the arguments are strings or containers of strings (cells).
%
% @example
% @group
%           strjoin(' loves-> ','marie','amy','beth') 
%           %%returns 'marie loves-> amy loves-> beth'
%
%           strjoin('*',@{'Octave','Scilab','Lush','Yorick'@})
%           %%returns 'Octave*Scilab*Lush*Yorick'
% @end group
% @end example
% @end deftypefn
% @seealso {strcmp}
%

CROSS-REFERENCE INFORMATION ^

This function calls: This function is called by:
Generated on Sat 16-May-2009 00:04:49 by m2html © 2003