function problem in matlab

2 次查看(过去 30 天)
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

采纳的回答

Walter Roberson
Walter Roberson 2020-12-11
(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)

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Manage Products 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by