This is an old version of the Octave manual. Find the latest version at: https://docs.octave.org/latest.

3.1.3 String Objects ΒΆ

A character string in Octave consists of a sequence of characters enclosed in either double-quote or single-quote marks. Internally, Octave currently stores strings as matrices of characters. All the indexing operations that work for matrix objects also work for strings.

See Strings, for more information.