If I create a table with multiple values per column like so:
x = [1,2,3];y = 4;T = table(x,y)
outputs
T = 1x2 table x y ___________ _ 1 2 3 4
such that T.x stores three values, 1 2 and 3. If I use writetable and readtable to save/load this table into a CSV file, like so:
writetable(T,"table.csv");T2 = readtable("table.csv")
outputs
T2 = 1x4 table x_1 x_2 x_3 y ___ ___ ___ _ 1 2 3 4
How can I read in this table such that x_1, x_2, and x_3 are grouped under one header, like in T?
Best Answer