str2num

Parent Previous Next

str2num

y = str2num ( str )
y = str.str2num ( )

Read a string and convert it to a numerical array.

arg

type

Description

Unit or Value scale

str

STR

String (it must not have a non-numerical character)


Outputs

  • y is an array from the string str.

Notes

  • If there's a non-numerical character, an empty array will be returned.

Examples

See Also

eval | sprintf

Created with the Personal Edition of HelpNDoc: Full-featured multi-format Help generator