How to take logarithm of a function in matlab?

1 visualizzazione (ultimi 30 giorni)
Tanvir Kaisar
Tanvir Kaisar il 10 Nov 2016
Commentato: Walter Roberson il 10 Nov 2016
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?

Risposte (1)

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

Accedi per commentare.

Categorie

Scopri di più su Mathematics in Help Center e File Exchange

Tag

Prodotti

Community Treasure Hunt

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

Start Hunting!

Translated by