\documentclass[12pt,a4paper,german]{article}
\usepackage{url}
%\usepackage{graphics}
\usepackage{times}
\usepackage[T1]{fontenc}
\usepackage{ngerman}
\usepackage{float}
\usepackage{diagbox}
\usepackage[utf8]{inputenc}
\usepackage{geometry}
\usepackage{amsfonts}
\usepackage{amsmath}
\usepackage{cancel}
\usepackage{csquotes}
\usepackage{graphicx}
\usepackage{epsfig}
\usepackage{paralist}
\usepackage{tikz}
\geometry{left=2.0cm,textwidth=17cm,top=3.5cm,textheight=23cm}

%%%%%%%%%% Fill out the the definitions %%%%%%%%%
\def \name {Valentin Brandl}					%
\def \matrikel {108018274494}				%
\def \pname {Marvin Herrmann}				%
\def \pmatrikel {108018265436}				%
\def \gruppe {2 (Mi 10-12 Andre)}
\def \qname {Pascal Brackmann}
\def \qmatrikel {108017113834}				%
\def \uebung {6}								%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

 % DO NOT MODIFY THIS HEADER
\newcommand{\hwsol}{
\vspace*{-2cm}
\noindent \matrikel \quad \name \hfill \"Ubungsgruppe: \gruppe \\
\noindent \pmatrikel \quad \pname \\
\noindent \qmatrikel \quad \qname \\
\begin{center}{\Large \bf L\"osung f\"ur \"Ubung \# \uebung}\end{center}
}

\begin{document}
%Import header
\hwsol

\section*{Aufgabe 6.4}

\begin{tabular}{|c|c|}
    \hline
    Iteration & $T[i,j]$ \\\hline
    0 & $\begin{pmatrix}
        0 & 1 & 0 & 1 & 0 &  \\ 
        0 & 0 & 1 & 0 & 1 &  \\
        0 & 0 & 0 & 0 & 0 &  \\
        0 & 1 & 0 & 0 & 0 &  \\
        1 & 0 & 0 & 0 & 0 &  \\
    \end{pmatrix}$ \\\hline
    1 & $\begin{pmatrix}
        0 & 1 & 0 & 1 & 0 &  \\
        0 & 0 & 1 & 0 & 1 &  \\
        0 & 0 & 0 & 0 & 0 &  \\
        0 & 1 & 0 & 0 & 0 &  \\
        1 & 1 & 0 & 1 & 0 &  \\
    \end{pmatrix}$ \\\hline
    2 & $\begin{pmatrix}
        0 & 1 & 1 & 1 & 1 &  \\
        0 & 0 & 1 & 0 & 1 &  \\
        0 & 0 & 0 & 0 & 0 &  \\
        0 & 1 & 1 & 0 & 1 &  \\
        1 & 1 & 1 & 1 & 1 &  \\
    \end{pmatrix}$ \\\hline
    3 & $\begin{pmatrix}
        0 & 1 & 1 & 1 & 1 &  \\
        0 & 0 & 1 & 0 & 1 &  \\
        0 & 0 & 0 & 0 & 0 &  \\
        0 & 1 & 1 & 0 & 1 &  \\
        1 & 1 & 1 & 1 & 1 &  \\
    \end{pmatrix}$ \\\hline
    4 & $\begin{pmatrix}
        0 & 1 & 1 & 1 & 1 &  \\
        0 & 0 & 1 & 0 & 1 &  \\
        0 & 0 & 0 & 0 & 0 &  \\
        0 & 1 & 1 & 0 & 1 &  \\
        1 & 1 & 1 & 1 & 1 &  \\
    \end{pmatrix}$ \\\hline
    5 & $\begin{pmatrix}
        1 & 1 & 1 & 1 & 1 &  \\
        1 & 1 & 1 & 1 & 1 &  \\
        0 & 0 & 0 & 0 & 0 &  \\
        1 & 1 & 1 & 1 & 1 &  \\
        1 & 1 & 1 & 1 & 1 &  \\
    \end{pmatrix}$ \\\hline
\end{tabular}

\end{document}
