Parsing a string into a vector
AlexG1
alxgel at gmail.com
Sun Feb 8 05:37:54 CST 2009
Hi,
I need to parse a string containing numbers (e.g. '1 2 3 4 5') into a
numeric vector.
In Matlab I simply used the strread() function, but I don't see any
equivalent for it in Octave. I've tried using strtok() but I can't get it
work properly, and it's pretty ugly anyway.
Can someone please post a code sample to help me with this?
Thanks,
Alex
--
View this message in context: http://www.nabble.com/Parsing-a-string-into-a-vector-tp21897961p21897961.html
Sent from the Octave - General mailing list archive at Nabble.com.
More information about the Help-octave
mailing list