How can I write log(e) in MATLAB?
18 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
Melika Qahqaie
il 15 Apr 2018
Commentato: Walter Roberson
il 16 Apr 2021
I am trying to calculate x=log(e) but I can not. Any help?
6 Commenti
John D'Errico
il 16 Apr 2021
Surely you can read the formula from that site?
Walter Roberson
il 16 Apr 2021
f = @(x) 4.^x - 256;
log4_256 = fzero(f, 1.2345)
4^log4_256
Risposta accettata
David Fletcher
il 15 Apr 2018
I assume you mean log10? In Matlab log is base e, so log(e)=1
x=log10(exp(1))
6 Commenti
John D'Errico
il 16 Apr 2021
@sultana saffi Please stop spamming this question with answers and comments to compute a log to do your homework.
Do you know the basic rule for logs to other bases?
The formula is given here:
Più risposte (0)
Vedere anche
Categorie
Scopri di più su Exponents and Logarithms in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!