フィルターのクリア

How to write this equation?

2 ビュー (過去 30 日間)
MAHMOUD ALZIOUD
MAHMOUD ALZIOUD 2019 年 11 月 26 日
コメント済み: MAHMOUD ALZIOUD 2019 年 11 月 26 日
Dear All, I have this equation in excel, what is the best way to write in matlab?
Y = 1.13+13/(1+EXP(7.57-15.5*LOG(x+0.0001)))
I tried this in matlab, but it did not give the same results for all values of x:
Y = 1.13+(13./(1+exp(7.57-15.5.*log(x+0.0001))));
x is a vector column of 200 values.
  2 件のコメント
Image Analyst
Image Analyst 2019 年 11 月 26 日
What values did x cover? Which of those gave a different value? Can you attach x in a .mat file or .xlsx file?
MAHMOUD ALZIOUD
MAHMOUD ALZIOUD 2019 年 11 月 26 日
Yes now this is the file, please see the columns of the results.
thanks

サインインしてコメントする。

採用された回答

Rik
Rik 2019 年 11 月 26 日
There is a difference between log and log10. What you have done in Excel is actually calculate the log10, because you omitted the base as an input. The log function in Matlab computes the natural logarithm. If you want to have the same effect, either put EXP(1) as the base in Excel, or use this in Matlab:
Y = 1.13+(13./(1+exp(7.57-15.5.*log10(x+0.0001))));
  1 件のコメント
MAHMOUD ALZIOUD
MAHMOUD ALZIOUD 2019 年 11 月 26 日
Amazing, thank you very very much

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeSpreadsheets についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by