Effacer les filtres
Effacer les filtres

How to calculate the value of natural log 'e' in Matlab?

52 vues (au cours des 30 derniers jours)
Zulfiqar Khan
Zulfiqar Khan le 21 Nov 2018
Commenté : Rik le 21 Nov 2018
Hi,
I tried following:
>> e.e
error: undefined function or variable e
>> exp(1) . exp(1)
error: Invalid expression
Some body please guide me how to find the natural log of a value in Matlab.
Zulfi.

Réponse acceptée

Rik
Rik le 21 Nov 2018
Please try Google next time before you ask a question (and have a look here).
The method to calculate the natural log is simply log(). If you want base 10 it is actually log10().
  2 commentaires
Zulfiqar Khan
Zulfiqar Khan le 21 Nov 2018
Hi,
Thanks for your response. I actually tried google before posting and got following:MathWorks
Google is good but sometimes we need human interactions and thats why we have forums.
Zulfi.
Rik
Rik le 21 Nov 2018
One of the nice things about the Matlab doc, it that at the bottom of the page there are links to similar functions, so if Google gets you to exp, the 'See Also' gets to to log and log10.
I'm sorry if I sounded a bit snarky btw.

Connectez-vous pour commenter.

Plus de réponses (1)

madhan ravi
madhan ravi le 21 Nov 2018
  1 commentaire
Zulfiqar Khan
Zulfiqar Khan le 21 Nov 2018
Thanks. It worked. God bless you.
Zulfi.

Connectez-vous pour commenter.

Catégories

En savoir plus sur Google dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by