str2num
Read a string and convert it to a numerical array.
Syntax
y = str2num ( str )
y = str.str2num ( )
Inputs
| Argument | Type | Description | Unit |
|---|---|---|---|
str | STR | String (it must not have a non-numerical character) | n/a |
Outputs / Return Value
y:yis an array from the stringstr.
Notes
- If there's a non-numerical character, an empty array will be returned.
See Also
Review Status
- Legacy parameter naming does not exactly match current engine metadata and should be reviewed manually.