Using a function in an anonymous function as input argument
Show older comments
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.
Accepted Answer
More Answers (0)
Categories
Find more on Numerical Integration and Differential Equations in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!