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 Kommentare

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

Melden Sie sich an, um zu kommentieren.

Antworten (0)

Kategorien

Tags

Gefragt:

am 6 Jan. 2021

Kommentiert:

am 6 Jan. 2021

Community Treasure Hunt

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

Start Hunting!

Translated by