help-octave
[Top][All Lists]
Advanced

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

Re: array of strings?


From: MrOba
Subject: Re: array of strings?
Date: Thu, 12 Sep 2013 06:19:03 -0700 (PDT)

I try to explain again.. 
>From Octave:

a = ["hello"; "world"]

this produce a variable like:
 
# name: a
# type: string
# elements: 2
# length: 5
hello
# length: 5
world

If I do something like:

b = a + 1

the result is a matrix like this:

# name: b
# type: matrix
# rows: 2
# columns: 5
 105 102 109 109 112
 120 112 115 109 101

again I can do:

c = char(b)

and the result is:

# name: c
# type: sq_string
# elements: 2
# length: 5
ifmmp
# length: 5
xpsme

is there a way to have c as the same type of a?




--
View this message in context: 
http://octave.1599824.n4.nabble.com/array-of-strings-tp4656994p4657271.html
Sent from the Octave - General mailing list archive at Nabble.com.


reply via email to

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