vertically concatenate two tables with different types of data
Mostrar comentarios más antiguos
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 comentarios
Dyuman Joshi
el 2 de Ag. de 2023
You can convert the data which is not a cell to a cell and then join them.
Respuesta aceptada
Más respuestas (0)
Categorías
Más información sobre Tables en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!