MATLAB: Change data type of a row in a table

int2strtable

Ex. Change this table
1 2 3 4
2 1 3 2
to
'1' '2' '3' '4'
2 1 3 2

Best Answer

No, that is no possible. In a table() object, all elements of a column must be the same data type.
In order for some entries in a column to be character vectors and some entries to be numeric, you would have to change the column to cell array, ending up with
['1'] ['2'] ['3'] ['4']
[ 2] [ 1] [ 3] [ 2]