help-octave
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


From: Michael Creel
Subject: Re: do exp(-0.5*z.*z) in .oct file?
Date: Thu, 24 Jul 2008 08:56:12 -0700 (PDT)



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
> address@hidden
> 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.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]