So i created a matrix in latex using the code:
\usepackage{kbordermatrix}
\usepackage{blkarray
\renewcommand{\kbldelim}{(}% Left delimiter
\renewcommand{\kbrdelim}{)}% Right delimiter
\[
\kbordermatrix{
& a & b & c & d\\
a & 2173.00 & 354.00 & 0.00 & 1249.00 \\
b & 0.00 & 3772.00 & 52.00 & 0.00 \\
c & 474.00 & 469.00 & 2858.00 & 42.00 \\
d & 1262.00 & 303.00 & 39.00 & 2180.00\\
}
\]
The above code is taken from here
The output matrix which I got is this: 
My doubt lies in my next task. I want to put a row of labels below my matrix like: 
How can i achieve this?
Thanks.

kbordermatrixdocs: I also have an experimental version that will put the labels on the right and bottom. If you ask, I will make it available. I might even try to make a version that lets you specify the layout, but I am content with top and left. – percusse Oct 02 '16 at 22:45