\documentclass[border=4pt]{standalone}
\usepackage{ga}
\input{../ee410.tikz}
\begin{document}
\begin{tikzpicture}[x=0.6cm, y=1cm]
  \draw[->] (-3.4,0) -- (3.6,0) node[right] {$t$};
  \draw[->] (0,-0.3) -- (0,1.6) node[above] {$\mathrm{rect}(t/\tau)$};
  \draw[wave] (-3.2,0) -- (-1.5,0) -- (-1.5,1) -- (1.5,1) -- (1.5,0) -- (3.2,0);
  \node[below, font=\small] at (-1.5,0) {$-\frac{\tau}{2}$};
  \node[below, font=\small] at (1.5,0) {$\frac{\tau}{2}$};
  \node[above left, font=\small] at (0,1) {$1$};
  \begin{scope}[xshift=6.2cm]
    \draw[->] (-4.4,0) -- (4.6,0) node[right] {$n$};
    \draw[->] (0,-0.3) -- (0,1.6) node[above] {$\mathrm{rect}\big(\frac{n}{2N+1}\big)$};
    \foreach \n in {-4,4} \fill[gaaccent] (\n,0) circle (1.6pt);
    \foreach \n in {-3,...,3} \draw[stem] (\n,0) -- (\n,1);
    \node[below, font=\small] at (-3,-0.05) {$-N$};
    \node[below, font=\small] at (3,-0.05) {$N$};
  \end{scope}
\end{tikzpicture}
\end{document}
