Logarithm with base other than 'e' - MATLAB Cody - MATLAB Central

Problem 43585. Logarithm with base other than 'e'

Difficulty:Rate

The standard log() function in Matlab returns the natural logarithm (base equal to Euler's constant). Compute the logarithm for input x give an arbitrary base passed to the function.

Solution Stats

81.01% Correct | 18.99% Incorrect
Last Solution submitted on Jul 16, 2025

Problem Comments

Solution Comments

Show comments

Problem Recent Solvers62

Suggested Problems

More from this Author9

Problem Tags

Community Treasure Hunt

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

Start Hunting!