how to represent ln in matlab?
81 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Dear Sir,
I need to calculate 'log base e(ln)' in matlab.how to use it ?.
Thanks in advance.
0 commentaires
Réponses (3)
the cyclist
le 18 Jan 2013
Modifié(e) : the cyclist
le 18 Jan 2013
The log() function is base-e log. So, to take log of x [mathematicians would usually say ln(x)], just do
>> log(x)
2 commentaires
Steven Lord
le 15 Fév 2017
Say more. Does it error (and if so what is the FULL text of the error message)? Does it issue a warning (ditto on the FULL message)? Does it give you a different answer than you expect?
Are you sure you haven't written your own log.m that's shadowing the log function built into MATLAB?
which -all log
omar alshowi
le 25 Juil 2021
MATLAB statement to evaluate the expression (ln exp(2 + cosπ)): is
1 commentaire
Walter Roberson
le 25 Juil 2021
Modifié(e) : Walter Roberson
le 25 Juil 2021
That sounds like a homework question.
Hints:
Voir également
Catégories
En savoir plus sur Exponents and Logarithms 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!