function problem in matlab

1 visualización (últimos 30 días)
ali hassan
ali hassan el 11 de Dic. de 2020
Respondida: Walter Roberson el 11 de Dic. de 2020
this is my function to get value of n but its not working.
code:
function[n]=agc(x)
n=1
(0.3790)*x=(1.1)^n
end

Respuesta aceptada

Walter Roberson
Walter Roberson el 11 de Dic. de 2020
(0.3790)*x=(1.1)^n
implies that
log(0.3790) +log(x) = n * log(1.1)
which implies that
n = (log(0.3790) + log(x))./log(1.1)

Más respuestas (0)

Categorías

Más información sobre Get Started with MATLAB 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