Parsing a string into a vector

AlexG1 alxgel at gmail.com
Sun Feb 8 06:10:22 CST 2009



Søren Hauberg wrote:
> 
> Is 'str2num' what you want?
> 
> str2num ('1 2 3 4 5')
> ans =
> 
>    1   2   3   4   5
> 
> Søren
> 
> 

Exactly that, thanks. I actually stumbled over this fubnction but the help
description made me think it could only convert one number at a time. 
-- 
View this message in context: http://www.nabble.com/Parsing-a-string-into-a-vector-tp21897961p21898204.html
Sent from the Octave - General mailing list archive at Nabble.com.




More information about the Help-octave mailing list