How to take logarithm of a function in matlab?

5 vues (au cours des 30 derniers jours)
Tanvir Kaisar
Tanvir Kaisar le 10 Nov 2016
Commenté : Walter Roberson le 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?

Réponses (1)

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

Connectez-vous pour commenter.

Catégories

En savoir plus sur Programming dans Help Center et File Exchange

Tags

Produits

Community Treasure Hunt

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

Start Hunting!

Translated by