Contents Previous Next Subchapters

Convert a Character Row Vector to a Valid O-Matrix Identifier
Syntax char2id(v)
See Also ntoa , atod , up2low , low2up

Description
This function returns a character row vector that is a valid O-Matrix identifier. The return value has the same length as the character row vector v and is as close to v as possible. If the first character of v is not a letter, it is converted to an underbar in the return value. If any other character of v is not a letter or a number between "0" and "9", it is also converted to an underbar in the return value.

Example
If you enter
     char2id("Size of Truck")
O-Matrix will respond
     Size_of_Truck