Multidimensional integration in matlab
3 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Shunan Sheng
el 13 de Abr. de 2021
Comentada: Bjorn Gustavsson
el 14 de Abr. de 2021
I would like to integrate a multivariate function such as

over
. Is there a built in function in matlab to do this? Expanding it to a function of
, the components of x will be really tedious if the dimension is higher.
. Is there a built in function in matlab to do this? Expanding it to a function of
, the components of x will be really tedious if the dimension is higher.0 comentarios
Respuesta aceptada
Bjorn Gustavsson
el 13 de Abr. de 2021
Have a look at the help and documentation for integral2. That should be the function to do 2-D integrals, that sounds like the function you're looking for.
HTH
2 comentarios
Shunan Sheng
el 14 de Abr. de 2021
Editada: Shunan Sheng
el 14 de Abr. de 2021
Bjorn Gustavsson
el 14 de Abr. de 2021
That is because your function is array-valued, and as far as I know integral2 doesn't handle that. You might have to evaluate the integral for each component separately.
Más respuestas (0)
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!