[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: newbie: function of function of function ...
From: |
Dot Deb |
Subject: |
Re: newbie: function of function of function ... |
Date: |
Fri, 28 Sep 2012 17:01:51 +0200 |
On Thu, Sep 27, 2012 at 11:25 PM, Richardson, Anthony
<address@hidden> wrote:
>
> Try defining the entropy function like this:
>
> function retval = entropy( f )
> quadcc( @(x) f(x).*log(f(x)), -Inf, +Inf)
> end
>
> and call it using: entropy(@gauss)
>
Oh, it works!
Now I understand where the problem was: actually I did try something
similar, but without using the "@" at call level.
Thank you.
Alberto