How do you write this equation correctly in MATLAB?

1 回表示 (過去 30 日間)
Andrew Emery
Andrew Emery 2018 年 6 月 27 日
回答済み: Star Strider 2018 年 6 月 27 日

採用された回答

Star Strider
Star Strider 2018 年 6 月 27 日
That is difficult to read. It appears to be this:
p = @(delta,sigma) (exp(-sigma./delta)./delta) .* (sigma >= 0);
It will default to being 0 for sigma < 0, so it is not necessary to specifically include that condition.
Call the ‘p’ anonymous function with the two arguments as you would any other function.

その他の回答 (0 件)

カテゴリ

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

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by