function problem in matlab

1 回表示 (過去 30 日間)
ali hassan
ali hassan 2020 年 12 月 11 日
回答済み: Walter Roberson 2020 年 12 月 11 日
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 Center および File ExchangeInstallation and Operational Settings についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by