Adding a categorical column to a table

I have a table and I want to a dd a categorical column to the table so that i end up with a 3 column table. How is it possible to do so (data attached)?

2 个评论

myTable.myCategoricalCol = myCategoricalVariable;
Btw, your org01 has only one category!
Thanks. that was very helpful

请先登录,再进行评论。

回答(0 个)

类别

帮助中心File Exchange 中查找有关 Tables 的更多信息

标签

提问:

2021-1-6

评论:

2021-1-6

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by