To be honest, the following example not exactly works as I had expected.
\documentclass{scrartcl}
\usepackage{pgfplots}
\pgfplotsset{compat=newest}
% taken from http://tex.stackexchange.com/questions/15475/using-ifthenelse-in-pgfmath
\pgfmathdeclarefunction{ifthenelsefpu}{3}{%
\pgfmathparse{#1*#2 + !#1*#3}%
}
\begin{document}
\begin{tikzpicture}
\begin{axis}[
scale only axis,
]
\addplot3[
surf,
samples = 20,
domain = -1:1,
y domain = -1:1,
] ({x}, {y}, {ifthenelsefpu({(x==0) && (y==0)},1,0)});
\end{axis}
\end{tikzpicture}
\end{document}
The result should be single peak at (0,0), but ...
[here should be a picture, but at the moment the upload is not working for me - sorry]
