Clear Filters
Clear Filters

How to take logarithm of a function in matlab?

1 view (last 30 days)
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?

Answers (1)

Walter Roberson
Walter Roberson on 10 Nov 2016
logf = @(x, y) log(f(x, y))
  2 Comments
Tanvir Kaisar
Tanvir Kaisar on 10 Nov 2016
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 on 10 Nov 2016
That is a different question that you already asked and I already answered.

Sign in to comment.

Categories

Find more on Startup and Shutdown in Help Center and File Exchange

Tags

Products

Community Treasure Hunt

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

Start Hunting!