leider brauche ich für meine Arbeit ein Konstrukt, das dem Folgenden ähnelt. Da ich leider LaTeX-Neuling bin und nicht weiter als kbordermatrix komme, wollte ich hier mal nachfragen.
Könnte mir hier jemand bitte helfen?
Ich wäre sehr dankbar!:)


\documentclass[tikz, border=5pt]{standalone}
\usepackage{upgreek}
\usetikzlibrary{matrix,positioning}
\tikzset{nodes={font=\sffamily}}
\begin{document}
\begin{tikzpicture}
\matrix[
matrix of nodes,
draw,
% nodes=draw,
row 1/.style={minimum height = 6cm},
column 1/.style={minimum width = 3cm},
rowheight/.style={minimum height = .5cm},
columnwidth/.style={minimum width = .5cm},
row 2/.style={rowheight},
row 3/.style={rowheight},
row 4/.style={rowheight},
column 2/.style={columnwidth},
column 3/.style={columnwidth},
column 4/.style={columnwidth},
thick,% Linienbreite
inner sep=0pt,
] (middle_matrix) {
$\upphi$ & \phantom{?} & ? & \phantom{?}\\
\phantom{O} & 1 & \phantom{1} & \phantom{1}\\
O & \phantom{1} & 1 & \phantom{1}\\
\phantom{O} & \phantom{1} & \phantom{1} & 1 \\
};
% Waagerechte Trennlinie
\draw [thick] (middle_matrix-2-1.north west) -- (middle_matrix-2-4.north east);
% Senkrechte Trennlinie
\draw [thick] (middle_matrix-1-1.north east) -- (middle_matrix-4-1.south east);
% Außenbeschriftung an der rechten unteren Ecke
\node [right=3.7em] at (middle_matrix-2-2) {1};
\node [right=.8em] at (middle_matrix-4-4) {3};
\node [below=.8em] at (middle_matrix-4-4) {3};
\node [below=3.7em] at (middle_matrix-2-2) {1};
\end{tikzpicture}
\end{document}