|
|
|
|
|
Logarithms and Exponentials
How to Examples How to: In MATLAB, there are several different logarithmic functions that are commonly used: log(x) - This is what is sometimes called ln(x) or natural log, it has a base of 'e' log2(x) - This is log with a base of 2 log10(x) - This is log with a base of 10 If we want to do computations using 'e' or the exponential: exp(1) - This is 'e' by itself (raised to the 1st power) exp(x) - This is 'e' raised to the 'x' power Examples: Let's first compute the log (base 10) of 10000: log10(10000) Now, let's find the value of the natural log of 'e' raised to the 8th power: log(exp(8)) |