vertically concatenate two tables with different types of data
Afficher commentaires plus anciens
I have two tables with the same variables that I want to concatenate vertically.
The problem is that table1 has one of the Variables as double but table2 has the same Variable with cell values, see image

Columns 126 and 128 have the same name in both tables but different type of data which does not allow me to use the following code:
table1 =vertcat(table1, table2);
The error message I'm getting is this one:
Error using tabular/vertcat
Cannot concatenate the table variable 'ACA500300_' because it is a cell in one table and a non-cell in another.
I appreciate any help.
2 commentaires
Dyuman Joshi
le 2 Août 2023
You can convert the data which is not a cell to a cell and then join them.
Réponse acceptée
Plus de réponses (0)
Catégories
En savoir plus sur Tables dans Centre d'aide et File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!