Effacer les filtres
Effacer les filtres

Logarithm with a variable base

1 vue (au cours des 30 derniers jours)
Chesus
Chesus le 2 Sep 2023
Commenté : Voss le 2 Sep 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?

Réponse acceptée

Voss
Voss le 2 Sep 2023
k=2
log(8)/log(k)

Plus de réponses (0)

Catégories

En savoir plus sur Get Started with MATLAB dans Help Center et File Exchange

Produits


Version

R2022b

Community Treasure Hunt

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

Start Hunting!

Translated by