char

Converts to a character array.

📝 Syntax

  • res = char(var)

  • res = char(var1, var2)

  • res = char(var1, var2, ..., varN)

📥 Input argument

  • var - a cell of strings, string array or an numeric array.

  • var1, var2, ..., varN - strings or an numeric arrays.

📤 Output argument

  • res - a string

📄 Description

char converts numerical input into character data by taking the corresponding unicode character for each element.

💡 Examples

🔗 See also

double.

🕔 History

Version
📄 Description

1.0.0

initial version

Last updated

Was this helpful?