How do you write this equation correctly in MATLAB?
1 次查看(过去 30 天)
显示 更早的评论
采纳的回答
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 个评论
更多回答(0 个)
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
