help-octave
[Top][All Lists]
Advanced

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

Arrays of Strings


From: Peter Norlindh
Subject: Arrays of Strings
Date: Tue, 26 Apr 2011 16:38:44 +0200

Hi,
 
I have formed an array, B, of strings.
 
A = ["one"; "two"; "three"];
B = cellstr (A);
 
I would like to use the individual strings in a function, but cannot get to them.  For example:
 
B (1, 1)
>> [1,1] = one   (..as opposed to >>"one", which is what I want)
 
How can I fish out the strings "one", "two" and "three"?
 
/hpon
 
 

reply via email to

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