I would like to plot a sampled sine wave. MWE is below. The error is that \hoek and \sinus are not defined.
\documentclass[12pt]{article}
\usepackage{tikz}
\usepackage{pgfplots}
\begin{document}
\begin{tikzpicture}
\begin{axis}[]
\addplot [domain=0:360,mark=none,samples=201,red]{0.5*sin(x)+0.5};
\foreach \count in {0.0,1.0,...,16.0}{%
\pgfmathsetmacro{\hoek}{\count*360.0/16.0};
\pgfmathsetmacro{\sinus}{0.5*sin(\count*360.0/16.0)+0.5};
\draw (\hoek,\sinus) circle[radius=2pt];
}
\end{axis}
\end{tikzpicture}
\end{document}

