MATLAB: How to assign an alphabet to a column in matlab

MATLAB

0.6164
3.1654
0.5745
2.9883
0.9381
2.1817
I have this column below and I want to assign another column to the numbers such as
0.6164 c1
3.1654 c2
0.5745 c1
2.9883 c2
0.9381 c1
2.1817 c2
How to I go about it . thanks

Best Answer

a=[ 0.6164
3.1654
0.5745
2.9883
0.9381
2.1817];
b=repmat(['c1';'c2'],size(a,1)/2,1);
% ^^--- assuming rows are even if not use some rounding function
T=table;
T.A=a;
T.B=b