I want to know why when I change the distance to 2.5cm the arrow connecting to the ouput node is in the opposite direction as shown in the second diagram. How can I fix this in order for the length of the arrows to be like in the second diagram?
Sample code for the first diagram:
\documentclass[10pt,letterpaper]{article}
\usepackage[utf8]{inputenc}
\usepackage{tikz}
\usetikzlibrary{shapes,arrows}
\begin{document}
\tikzstyle{block1} = [draw, fill=white!20, rectangle,minimum height=3em, minimum width=10em]
\tikzstyle{input} = [coordinate]
\tikzstyle{output} = [coordinate]
\begin{center}
\begin{tikzpicture}[auto, node distance=2.15cm,>=latex']
\node [input, name=input] {};
\node [block1, right of=input] (h_k) {$h(k)=h_1(k)*h_2(k)$};
\node [output, right of=h_k] (output) {};
\draw [->] (input) -- (h_k);
\draw [->] (h2_k) -- (output);
\end{tikzpicture}
\end{center}
\end{document}

Sample code for the second diagram:
\documentclass[10pt,letterpaper]{article}
\usepackage[utf8]{inputenc}
\usepackage{tikz}
\usetikzlibrary{shapes,arrows}
\begin{document}
\tikzstyle{block1} = [draw, fill=white!20, rectangle,minimum height=3em, minimum width=10em]
\tikzstyle{input} = [coordinate]
\tikzstyle{output} = [coordinate]
\begin{center}
\begin{tikzpicture}[auto, node distance=2.5cm,>=latex']
\node [input, name=input] {};
\node [block1, right of=input] (h_k) {$h(k)=h_1(k)*h_2(k)$};
\node [output, right of=h_k] (output) {};
\draw [->] (input) -- (h_k);
\draw [->] (h2_k) -- (output);
\end{tikzpicture}
\end{center}
\end{document}

\documentclass{...}and ending with\end{document}. That may seem tedious to you, but think of the extra work it represents for TeX.SX users willing to help you. Help them help you: remove that one hurdle between you and a solution to your problem. – jub0bs Oct 28 '13 at 14:58h2_kis not declared at all. So, everything depend on where this magich2_kis placed. – Claudio Fiandrino Oct 28 '13 at 15:06right of=andright=ofin PGF/TikZ and Should\tikzsetor\tikzstylebe used to define TikZ styles? – Qrrbrbirlbel Oct 28 '13 at 15:39