How can I integrate the math equation (attachment) numerically?
1 visualización (últimos 30 días)
Mostrar comentarios más antiguos
Pls see the attachment. There three different functions NL, NR and T which depend on Ex. Here, we have to integrate all with respect to Ex. I have made NL(Ex), NR(Ex) and T(Ex). But I cann't inegrate it altogether. How can I do that? (ingration of Ex*(NL(Ex)-NR(Ex))*T(Ex))
0 comentarios
Respuestas (1)
Torsten
el 15 de Jun. de 2023
Editada: Torsten
el 15 de Jun. de 2023
Just as it's written:
result = integral(@(Ex)Ex.*(NL(Ex)-NR(Ex)).*T(Ex),0,Inf)
Of course, I don't know whether you defined the three functions NL, NR and T correctly and if they can cope with array inputs for Ex.
2 comentarios
Walter Roberson
el 16 de Jun. de 2023
result = integral(@(Ex)Ex.*(NL(Ex) - NR(Ex)).*Tr(Ex), 0, Inf)
Ver también
Categorías
Más información sobre Numerical Integration and Differentiation en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!