help-octave
[Top][All Lists]
Advanced

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

Converting an array of strings to an mxArray


From: MrOba
Subject: Converting an array of strings to an mxArray
Date: Mon, 30 Sep 2013 03:43:32 -0700 (PDT)

Hi all, 
Again I'm having trouble converting an array of strings to a mxArray.
After searching for a while I could figure out that an array of strings in
"mxArray format" is an array of strings where each char is a string itself.
can anybody confirm that?

In that case the size of the array is much bigger than I expected as each
char is a string terminated with a "\0" (or should I consider it a 2 byte
char?). In addition each line of the array is made of 256 char.
("STRING" -> "S" "\0" "T" "\0" "R" "\0" "I" "\0" "N" "\0" "G" "\0" "\0" "\0"
"\0" "\0" "\0" "\0" "\0"... )

Said that (and if what I understood is correct).. do you have any idea about
how I can convert the data?

MrO



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


reply via email to

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