10  String

A string constant consists of a sequence of characters enclosed in either double-quote or single-quote marks. Strings in double- quotes allow the use of the escape sequences below.

octave description
\\ a literal backslash
\" a literal double-quote character
\' a literal single-quote character
\n newline, ASCII code 10
\t horizontal tab, ASCII code 9
sprintf sscanf formatted IO to/from string
strcmp compare strings
strcat joins strings
strfind regexp find matching patters
strrep regexprep find and replace patterns