R = sscanf(str, format)
R = sscanf(str, format, sizeR)
[R, count] = sscanf(...)
[R, count, errmsg] = sscanf(...)
[R, count, errmsg, nextindex] = sscanf(...)
| Parameter | Description |
|---|---|
| str | character array or string scalar. |
| format | a string describing the format to used function, see fscanf for supported format. |
| sizeR | desired dimensions of R. |
| Parameter | Description |
|---|---|
| R | matrix or character vector. |
| count | number of elements read into output array. |
| errmsg | Error message. |
| nextindex | Position after last character scanned. |
Read formatted data from strings.
str = "2.7183 3.1416 0.0073";
R = sscanf(str,'%f',[2 2])
| Version | Description |
|---|---|
| 1.0.0 | initial version |