Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

I am trying to draw the following block diagram using pgf/TikZ. Actually I am struck at getting the two inputs to the first block horizontal.

block diagram

What is the best way to draw the above diagram using pgf/TikZ.

share|improve this question
add comment

1 Answer

One possibility:

\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}

enter image description here

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.