% Add a matrix of zeros to host the dummy variables
dum=zeros(length(Month),length(set_of_month));T=[table(Month) array2table(dum)];
will add a matrix of zeros. But I want to add a matrix of some strings like
--------------United StatesUnited States
Then how can one modify the above code?
**********
This is what I did:
dum=zeros(height(T),1)dum1=num2cell(dum)dum1(dum==0)={'US'}T1=cell2table(dum1) T=[T T1]
Best Answer