Borrar filtros
Borrar filtros

formula for changing the base of a logarithm is: loga(N) = (logb(N))/(logb(a)) (a) Use MATLAB's function log (x) to calculate log4(0.085)

36 visualizaciones (últimos 30 días)
Can you guide me about log4(0.85) 4 is writen below the log

Respuestas (1)

Karim
Karim el 20 de Sept. de 2022
You can create a function handle to eval the desired base:
log4_fun = @(x) log(x) / log(4)
log4_fun = function_handle with value:
@(x)log(x)/log(4)
log4_fun(0.85)
ans = -0.1172

Categorías

Más información sobre Migrate GUIDE Apps en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by