سلام
۱- ابتدا بستهی tikz
رو فراخوانی کنید:
\usepackage{tikz}
۲- کد:
\[
\left(
\begin{array}{@{}ccc|c|ccc@{}}
\psi_1& \dots & 0 & & \psi_4 & \dots & 0\\
0& \begin{tikzpicture}\draw[densely dotted,] (0,0) rectangle (0.4,0.4);\end{tikzpicture} & 0& & 0& \begin{tikzpicture}\draw[densely dotted,] (0,0) rectangle (0.4,0.4);\end{tikzpicture}& 0 \\
0& \ddots & 0& \dots & 0& \ddots & 0 \\
0& \begin{tikzpicture}\draw[densely dotted,] (0,0) rectangle (0.4,0.4);\end{tikzpicture} & 0& & 0& \begin{tikzpicture}\draw[densely dotted,] (0,0) rectangle (0.4,0.4);\end{tikzpicture}& 0 \\
0& \dots & \psi_1& & 0& \dots& \psi_4
\end{array}
\right)_{5\times 20}
\]
۳- خروجی: