I'm trying to draw a matrix like this one in the picture with extremely low success.
The code of what I've tried so far is the following
\documentclass[letterpaper,11pt]{article}
\usepackage{tikz}
\usepackage{ifthen}
\usetikzlibrary{matrix}
\usetikzlibrary{decorations.pathreplacing}
\begin{document}
\begin{tikzpicture}
\matrix[matrix of math nodes,
left delimiter=(,
right delimiter=),
nodes in empty cells] (m)
{
& & & & & \\
& & & & & \\
& & & & & \\
& & & & & \\
& & & & & \\
& & & & & \\
};
\fill[yellow!30] (m.north west) |- (m-6-6.south east);
\fill[yellow!30] (m.north west) -| (m-6-6.south east);
\fill[red!30] (m.north west) -| (m-4-4.south east);
\fill[red!30] (m.north west) |- (m-4-4.south east);
\draw[line width=3mm,white] (m.north west) -- (m-6-6.south east);
\draw[thick,-] (m-1-1.north west) -- (m-6-6.south east);
\node [fill=white, outer sep=0,inner sep=1,minimum size=3] at (m-1-1.north west) {0};
\node [fill=white, outer sep=0,inner sep=1,minimum size=10] at (m-6-6.south east) {0};
\tikzstyle{myedgestyle} = [decorate, decoration={brace}](m-1-1.north west) -- (m-1-6.north east);
\end{tikzpicture}
\end{document}
which results in this output
I have the feeling that this attempt will not end up in anything decent, and moreover for some reason I don't manage to put the braces.
Do you have some suggestions on how I can proceed?



