Logarithm with a variable base

5 visualizaciones (últimos 30 días)
Chesus
Chesus el 2 de Sept. de 2023
Comentada: Voss el 2 de Sept. de 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?

Respuesta aceptada

Voss
Voss el 2 de Sept. de 2023
k=2
log(8)/log(k)

Más respuestas (0)

Categorías

Más información sobre Data Logging en Help Center y File Exchange.

Etiquetas

Productos


Versión

R2022b

Community Treasure Hunt

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

Start Hunting!

Translated by