|
Contents | Previous | Next | Subchapters |
| Syntax |
char2dbl(text, separator) |
| See Also | atod , align |
The character row vector separator
specifies a list of character that separate fields in
each row of text
(each field in text corresponds to a column
in the return value).
text = { ...
"1,2,3", ...
"4;,5; 6", ...
"7 8 9" ...
}
separator = ",; "
x = char2dbl(text, separator)
print x
O-Matrix will respond
{
[ 1 , 2 , 3 ]
[ 4 , 5 , 6 ]
[ 7 , 8 , 9 ]
}
Note that a connected sequence of separators characters
have the same effect as one separator character.
text = { ...
"1,2", ...
"4;,5; 6", ...
"7 8" ...
}
separator = ",; "
x = char2dbl(text, separator)
print x
O-Matrix will respond
{
[ 1 , 2 , 0 ]
[ 4 , 5 , 6 ]
[ 7 , 8 , 0 ]
}