Logarithm with a variable base

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?

More Answers (0)

Categories

Products

Release

R2022b

Asked:

on 2 Sep 2023

Commented:

on 2 Sep 2023

Community Treasure Hunt

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

Start Hunting!