You can convert the double column to a cell column using the num2cell
function, and then concatenate the two columns with the horzcat
function. Here's an example:
main.m306 chars11 lines
In this example, T_concat
will be a table with two columns, both cell columns, containing the values of dbs_id
and dbs_bezeichnung
.
Keep in mind that concatenating columns with different types can cause unexpected behavior in your code, so be sure to check the results carefully.
gistlibby LogSnag