pgf/TikZ 中具有两个输入的块

pgf/TikZ 中具有两个输入的块

我正在尝试使用 pgf/TikZ 绘制以下框图。实际上,我很难将第一个块的两个输入水平化。

框图

使用 pgf/TikZ 绘制上图的最佳方法是什么。

答案1

一种可能性是:

\documentclass{article}
\usepackage{tikz}
\usetikzlibrary{positioning}

\begin{document}

\begin{tikzpicture}[box/.style={draw,rounded corners,text width=2.5cm,align=center}]
\node[box] (a) {Psychoacustic Model};
\node[left=of a.170,font=\bfseries] (aux1) {Reference};
\node[left=of a.190,font=\bfseries] (aux2) {Degraded};
\node[box,right=of a] (b) {Cognitive Model};
\node[right=of b,font=\bfseries] (c) {Score};
\draw[->] (aux1) -- (a.170);
\draw[->] (aux2) -- (a.190);
\draw[->] (a) -- (b);
\draw[->] (b) -- (c);
\end{tikzpicture}

\end{document}

在此处输入图片描述

相关内容