MATLAB: Value of log(1000)

log

hi all i want to find value of log(1000)in matlab, we know lo(1000) value is 3, but matlab calculate it 6.9078. tell me how to calculate this value
Thank You

Best Answer

the value 6.9078 is ln(1000) . To compute log(1000), you can type : >> log10(1000)
ans =
3
or
>> log(1000)/log(10)
ans =
3.0000