view test/octave.test/string/char-3.m @ 4359:77605935a783

[project @ 2003-02-23 04:18:26 by jwe]
author jwe
date Sun, 23 Feb 2003 04:18:27 +0000
parents
children
line wrap: on
line source

x = char ("foo", "bar", "foobar");
(strcmp (x(1,:), "foo   ")
 && strcmp (x(2,:), "bar   ")
 && strcmp (x(3,:), "foobar"))