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?

更多回答(0 个)

类别

产品

版本

R2022b

标签

Community Treasure Hunt

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

Start Hunting!

Translated by