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 Comments

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

Sign in to comment.

Answers (0)

Categories

Tags

Asked:

on 6 Jan 2021

Commented:

on 6 Jan 2021

Community Treasure Hunt

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

Start Hunting!