help-octave
[Top][All Lists]
Advanced

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

Parsing a string into a vector


From: AlexG1
Subject: Parsing a string into a vector
Date: Sun, 8 Feb 2009 03:37:54 -0800 (PST)

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.



reply via email to

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