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?

 採用された回答

Voss
Voss 2023 年 9 月 2 日

3 投票

k=2
log(8)/log(k)

その他の回答 (0 件)

カテゴリ

ヘルプ センター および File ExchangeExponents and Logarithms についてさらに検索

製品

リリース

R2022b

タグ

質問済み:

2023 年 9 月 2 日

コメント済み:

2023 年 9 月 2 日

Community Treasure Hunt

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

Start Hunting!

Translated by