strcat concatenates character strings Calling Sequence txt = strcat(strings [,string_added]) txt = strcat(strings [,string_added, ["flag"]]) Arguments strings a vector or matrix of strings. string_added a string added, default value is the zero length character string "". txt a string. "flag" a character ("r" for concatenation of rows in the matrix strings, "c" for concatenations of columns in the matrix strings). Description txt = strcat(strings) concatenates character strings: txt = strings(1) + ... + strings(n). txt = strcat(strings, string_added) returns txt = strings(1) + string_added + ... + string_added + strings(n). The plus symbol does the same: "a"+"b" is the same as strcat(["a","b"]).. If the size of strings is one, it returns txt = strings(1); strcat('A','B') returns 'A' and not 'AB' as strcat(['A','B']). If strings is a matrix of strings, txt = strcat(strings, "", "r") returns a row vector of strings. Each entry of txt results from the concatenation of rows along the related column. txt = strcat(strings, "", "c") returns a column vector of strings. Each entry of txt results from the concatenation of columns along the related row. Examples See Also string strings