MATLAB: Numerical integration of a vector from limits 0 to Infinity

numerical integrationvectors

Hi, I have a vector of data points,Y corresponding to a time vector 't'.
How do I integrate the vector 'Y' from the limits zero to infinity?
I know there is the 'trapz' command to integrate vectors, but how do I integrate it between these specific limits – 0 and Inf?
Please advise. Thank you in advance.

Best Answer

quadgk() can be used on infinite intervals provided that the function is does not oscillate too much.