Using a function in an anonymous function as input argument
Ältere Kommentare anzeigen
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.
Akzeptierte Antwort
Weitere Antworten (0)
Kategorien
Mehr zu Numerical Integration and Differential Equations finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!