Using a function in an anonymous function as input argument
显示 更早的评论
Hi everyone.
I would like some help to compute the next integral:
u = integral(@(y) G(R(y)) * f(y), 0, 1)
Where R(y) = ( h(y,R(y)) + integral(G(y),R(y),y) ) / G(y)
and G( ), H( ), f( ) are known functions.
Is there anyway to put R(y) as an anonymous function or should be done in another way?. Thank you for reading this question.
采纳的回答
更多回答(0 个)
类别
在 帮助中心 和 File Exchange 中查找有关 Numerical Integration and Differential Equations 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!