Logarithm with a variable base

9 visualizzazioni (ultimi 30 giorni)
Chesus
Chesus il 2 Set 2023
Commentato: Voss il 2 Set 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?

Risposta accettata

Voss
Voss il 2 Set 2023
k=2
log(8)/log(k)

Più risposte (0)

Categorie

Scopri di più su Data Logging in Help Center e File Exchange

Prodotti


Release

R2022b

Community Treasure Hunt

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

Start Hunting!

Translated by