Hello all, I'm trying to write the C++ code for an .oct that will perform the equivalent of exp(-0.5*z.*z), where z is a vector or matrix. I think that Matrix.map will let me do the exp() to all elements, but I can't figure out how to do the element-by-element squaring. Thanks, Michael