Ok, danke erstmal. Hier nochmal ein Minimalbsp.:
Code:
\documentclass{article}
\usepackage{amsmath}
\usepackage{array}
\usepackage{tikz}
\usetikzlibrary{arrows,matrix,positioning}
\begin{document}
%
%
\begin{tikzpicture}
\matrix [matrix of math nodes,,nodes={text width=6mm},left delimiter=(,right delimiter=)](m){
a^2_{11} & a_{12} & \cdots & a^2_{1N} \\
a_{21} & a^2_{22} & \cdots & a^3_{2N} \\
\vdots & \vdots & \ddots & \vdots \\
a_{N1} & a_{N2} & \cdots & a_{NN} \\
};
\draw[color=red]
(m-2-2.north west) -- (m-2-4.north east) --
(m-4-4.south east) -- (m-4-2.south west) --
(m-2-2.north west);
\end{tikzpicture}
%
%
-$\omega$
\begin{tikzpicture}
\matrix [matrix of math nodes,,nodes={text width=6mm},left delimiter=(,right delimiter=)](m){
b^2_{11} & b_{12} & \cdots & b^2_{1N} \\
b_{21} & b^2_{22} & \cdots & b^3_{2N} \\
\vdots & \vdots & \ddots & \vdots \\
b_{N1} & b_{N2} & \cdots & b_{NN} \\
};
\draw[color=red]
(m-2-2.north west) -- (m-2-4.north east) --
(m-4-4.south east) -- (m-4-2.south west) --
(m-2-2.north west);
\end{tikzpicture}
%
%
\end{document}
Wie könnte man die ganze Gleichung darstellen? Ich komm leider mit google nicht weiter. Im Minimalbsp. sind die \vdots nicht zentral und unter der zweiten Zeile ist zuviel weiß. Da stimmen irgendwie die Abstände nicht. Vielleicht sollte ich es einfach so belassen:
Code:
\begin{align}
\setlength\extrarowheight{3pt}
\left[
\left(
\begin{array}{c|cccc}
a_{11} & a_{12} & \cdots & a_{1N} \\
\hline
a^2_{11} & a^2_{12} & \cdots & a^1_{1N} \\
a_{31} & a_{32} & \cdots & a_{3N} \\
\vdots & \vdots & \ddots & \vdots \\
a_{N1} & a_{N2} & \cdots & a_{NN} \\
\end{array}
\right)
%
- \omega
\left(
\begin{array}{c|ccc}
b_{11} & b_{12} & \cdots & b_{1N} \\
\hline
b^2_{11} & b^2_{12} & \cdots & b^2_{1N} \\
b_{31} & b_{32} & \cdots & b_{3N} \\
\vdots & \vdots & \ddots & \vdots \\
b_{N1} & b_{N2} & \cdots & b_{NN} \\
\end{array}
\right)
\right]
\begin{pmatrix}
x_1 \\
\vdots \\
x_N
\end{pmatrix}
=
\begin{pmatrix}
0 \\
\vdots \\
0
\end{pmatrix}
\end{align}
Frage: Ist das \setlength\extrarowheight{3pt} die einzige Möglichkeit, den Abstand der hline und den Matrixeinträgen der zweiten Zeile hinzukriegen?
Gruß, fünfhaus
Lesezeichen