Contents Previous Next Subchapters

Left Justify a Sequence of Strings in a Single Matrix (Mlmode)
Syntax str2mat(s1s2...)
See Also { list of values }

Returns a single character matrix that contains the sequence s1, s2, ... as left justified submatrices with spaces used to fill on the right. The arguments s1, s2, ... can be arbitrary character matrices (referred to as strings when they are row vectors). Note that this syntax is equivalent to, but not as fast as, { s1, s2, ... } .

If you enter
     s1 = "abc"
     s2 = { ...
          "one",  ...
          "two",  ...
          "three" ...
     mat = str2mat(s1, s2)
     print mat
O-Matrix will reply