Contents Previous Next Subchapters

Converting ASCII Numbers To Integer
Syntax atoi(x)
See Also atod , ntoa , int

Description
Returns an integer column vector representation of x, where x is a character matrix. The return value has the same row dimension as x. The ith row of the matrix x is converted to the ith element of the return value. Any fractional part of x is ignored.

Example
     ascii = "3.3"
     atoi(ascii)
returns
     3