char
char(A1,...,An)- When Ai is a string array, cell array, or categorical array, only one argument is allowed
- Converts A1 to a char array
- When Ai is a char array
- Whitespace is not trimmed
- Inputs need not have the same length; each row is right-padded with spaces to match the longest one
- When Ai is a numeric array
- Converts the ASCII code points to characters
- Then concatenates them vertically as in case 2
- When Ai is an empty array
- Padded with spaces as in case 2
- When Ai is a string array, cell array, or categorical array, only one argument is allowed