view test/octave.test/string/char-3.m @ 5103:e2ed74b9bfa0 after-gnuplot-split

[project @ 2004-12-28 02:43:01 by jwe]
author jwe
date Tue, 28 Dec 2004 02:43:01 +0000
parents 77605935a783
children
line wrap: on
line source

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