char

char(X) transforms X matrix into char type. More than one input will be concatenated vertically, in this case.

Examples

>> char([97 98])#

	ab
>> t = table({'acb', 'c', 'de'})
char(t.Col1)#

acb
c  
de 
>> categories = {'arithmetics', 'basic math', 'cells'}
categ = char(categories)

[categories:1x3 cell]
[categ:3x11 char]

>> categ#

arithmetics
basic math 
cells      
>> char(98, 'cd')#

b 
cd

See also

class | ischar