MATLAB: Letters in Matrix

MATLABmatrix

I am constructing a matrix consisting of letters, however at the moment it is not working. I was wondering if you could help. My present code is;
function LettersMatrix
M=16;
C = zeros(M);
for i=1:2:3
C(i,2)=-B/H;
end
for i=1:2:3
C(i+4,2)=B/H;
end
disp(transpose(C));
I think the command char, or cell is needed though i am unsure. Can anyone help;
Kind Regards
Dan

Best Answer

You want this solution?
C = cell(16);
k = 1:3;
C(k,2) = {'-B/H'};
C(k+4,2) = {'B/H'};
C'