help-octave
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

String Array


From: stoucha
Subject: String Array
Date: Fri, 19 Nov 2010 22:36:40 -0800 (PST)

Hi.

I would like to create an array of strings such that I can reference them
similar to referencing values in a matrix.

Here is what I have tried:

a = ["string1"; "string2"; "string3"];

when I type "a" at an octave prompt I get three lines as follows
string1
string2
string3

however, if I type a(1) in an attempt to get just "string1" I just get "s"

Any ideas how to achieve an array of strings where I can reference each
element individually.

Thanks,


-- 
View this message in context: 
http://octave.1599824.n4.nabble.com/String-Array-tp3051310p3051310.html
Sent from the Octave - General mailing list archive at Nabble.com.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]