function problem in matlab

1 Ansicht (letzte 30 Tage)
ali hassan
ali hassan am 11 Dez. 2020
Beantwortet: Walter Roberson am 11 Dez. 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

Akzeptierte Antwort

Walter Roberson
Walter Roberson am 11 Dez. 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)

Weitere Antworten (0)

Kategorien

Mehr zu Manage Products finden Sie in Help Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by