To integrate a mathematical function from -inf to inf in MATLAB, I am using from trapz but i am finding it difficult as the variable like d(X), X has to be like ( -1000,1000,2000), but since i have to integrate it from -inf to +inf, if you have any suggestions to look into please let me know