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 CenterFile Exchange에서 Mathematics에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by