sscanf
Read an array from a string according to the given size and format.
(data, count)=sscanf(string, form, vsize)
Inputs
string The string from which the data is to be read.
form The format string.
vsize A two-element vector specifying the number of rows and columns to be read. See below for more details.
Outputs
data The array read from the string according to the specified format and size.


Description
If the specified number of rows is inf , the elements are read till the end of string has been reached and they are stored in a vector. If the last input is of the form [m inf] the elements are read till the end of file has been reached and they are stored in a matrix of m rows and as many columns as are necessary to store all the elements that have been successfully read.


Example
>>sscanf("2 3 4 5 6 4","%f",[2 3])
          2          4          6
          3          5          4