Integration of a function with respect to a dummy variable
Mostrar comentarios más antiguos

How to evaluate the integral ?
f(x) is integrated over a dummy variable z. Please note that x ((x(i) >= 0 or x(i) < 0)) is an array of n x 1 , and f(x) is a corresponding array of n x 1. I do not have the closed form expression for f(x), nor is curve fitting an option to approximate the data as an expression. How do I find corresponding vector A.
Kindly direct me to appropriate approach to solve this issue.
Respuesta aceptada
Más respuestas (2)
Hiro Yoshino
el 6 de Mayo de 2020
1 voto
Why don't you think about using Symblic Math Toolbox?
You can manipulate your equation as you wish.
1 comentario
Nikhil Yewale
el 6 de Mayo de 2020
Hiro Yoshino
el 6 de Mayo de 2020
1 voto
f = [-0.9 -0.5 0.4 0.3 0 -0.3 -0.5 0.5]
let me assume z to be:
z = [0.0 1.0 2.0 3.0 4.0 5.0 6.0 7.0 8.0]
and
then
If you prefer continous manner, you should either approximate f as a function or interpolate the discrete numbers.
1 comentario
Nikhil Yewale
el 6 de Mayo de 2020
Categorías
Más información sobre Mathematics en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
