I have a 1 x 8 cell array (length of cell array is subject to change over by use) where each cell contains a 353 x 9 table or 353 x 12 table. In the columns of a cell, there is either numeric or string data. For example, one column may contain area values like 54.5698 where the column next to it contains the units for it as such: 'um^2'. When I run: comb_data = horzcat(data{1,1}{1,:});
I get the error: Unable to concatenate the table variables 'Area' and 'Unit', because their types are double and cell.
Any ideas? Thanks in advance!
Edit: I want to be able to combine the data in these cells by a particular column names ID as some of the data is out of order across cells. Is there a way to manipulate the join function to join the tables by a variable while also having repeating variable names across files?
concat_table = join( tables in cell ,'Keys','ID','KeepOneCopy','Depth','Level','Time','FilamentID','Category',);
Best Answer