do exp(-0.5*z.*z) in .oct file?
Michael Creel
michael.creel at uab.es
Thu Jul 24 10:56:12 CDT 2008
Michael Creel wrote:
>
> 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
> _______________________________________________
> Help-octave mailing list
> Help-octave at octave.org
> https://www.cae.wisc.edu/mailman/listinfo/help-octave
>
>
found it: product(z,z) does the trick. M
--
View this message in context: http://www.nabble.com/do-exp%28-0.5*z.*z%29-in-.oct-file--tp18632345p18634946.html
Sent from the Octave - General mailing list archive at Nabble.com.
More information about the Help-octave
mailing list