How to take logarithm of a function in matlab?

1 次查看(过去 30 天)
I have defined a function f=inline('x*y','x','y').That is f(x,y)=x*y.
How can i take log of this function?

回答(1 个)

Walter Roberson
Walter Roberson 2016-11-10
logf = @(x, y) log(f(x, y))
  2 个评论
Tanvir Kaisar
Tanvir Kaisar 2016-11-10
But I want to get log(x)+log(y) from taking logarithm of the function (x*y)..MATLAB simply shows log(x*y)
Walter Roberson
Walter Roberson 2016-11-10
That is a different question that you already asked and I already answered.

请先登录,再进行评论。

类别

Help CenterFile Exchange 中查找有关 Startup and Shutdown 的更多信息

标签

产品

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by