I have a table in spreadsheet (xlsx). One of the column is composed of either a numerical number, or several of them, like the below:
23 5,79742,8,95
When I use readtable:
T1 = readtable ('Observations.xlsx');
the results are like this:
23 NaN974NaN5
My question is how do I read the info as a string, so that the groups like '5,7', and '2,8,9' are all captured?
I tried:
T1 = readtable ('Observations.xlsx', 'Format','%s %s %s');
But got the below error:
Invalid value for "Format". Must be "auto" for spreadsheet files.
Best Answer