Logarithm with a variable base

5 ビュー (過去 30 日間)
Chesus
Chesus 2023 年 9 月 2 日
コメント済み: Voss 2023 年 9 月 2 日
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 日
k=2
log(8)/log(k)

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeData Logging についてさらに検索

タグ

製品


リリース

R2022b

Community Treasure Hunt

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

Start Hunting!

Translated by