我想在图形旁边放置一个矩阵,并在它们之间放置一个箭头,如下所示:
我当前的工作如下:
\documentclass{article}
\usepackage{graphicx,amsmath}
\begin{document}
\begin{figure}[!h]
\centering
\includegraphics[width=0.8\textwidth]{eeg}
\caption{The recorded EEG signals.}
\label{fig:eeg-signals}
\end{figure}
\begin{equation*}
\left(\begin{array}{cccc}
a_{11} & a_{12} & \cdots & a_{1n} \\
a_{21} & a_{22} & \cdots & a_{2n} \\
\vdots & \vdots & \ddots & \vdots \\
a_{n1} & a_{n2} & \cdots & a_{nn}
\end{array}\right)
\end{equation*}
\end{document}
产生:
我该怎么做?请帮忙。
答案1
如果你只是想展示这一点,你可以将所有内容插入 Ti钾Z 节点。
\documentclass{standalone}
\usepackage{tikz,graphicx,amsmath}
\usetikzlibrary{positioning}
\begin{document}
\begin{tikzpicture}
\node (IMG) {
\includegraphics[width=0.8\textwidth]{example-image}
};
\node[below = 2mm of IMG] (LBL) {Figure 1 : eeg-signals};
\node[right = 2cm of IMG] (MTRX) {
$
\left(\begin{array}{cccc}
a_{11} & a_{12} & \cdots & a_{1n} \\
a_{21} & a_{22} & \cdots & a_{2n} \\
\vdots & \vdots & \ddots & \vdots \\
a_{n1} & a_{n2} & \cdots & a_{nn}
\end{array}\right)
$
};
\draw[line width=2pt,->] (IMG) -- (MTRX);
\end{tikzpicture}
\end{document}