Clear Filters
Clear Filters

Logarithm with a variable base

1 view (last 30 days)
Chesus
Chesus on 2 Sep 2023
Commented: Voss on 2 Sep 2023
I want to make a logarithm that has a variable as its base, like:
k=2
logk(8)
ans =
3
How can I do that?

Accepted Answer

Voss
Voss on 2 Sep 2023
k=2
log(8)/log(k)

More Answers (0)

Categories

Find more on Get Started with MATLAB in Help Center and File Exchange

Products


Release

R2022b

Community Treasure Hunt

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

Start Hunting!