do exp(-0.5*z.*z) in .oct file?

Michael Creel michael.creel at uab.es
Thu Jul 24 08:01:54 CDT 2008


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


More information about the Help-octave mailing list