Numerical integration using Simpson's Rule on discrete data
问题 I am looking for numerical integration with matlab. I know that there is a trapz function in matlab but the precision is not good enough. By searching it online, I found there is a quad function there it seems only accept symbolic expression as input. My data is all discrete and one-dimensional. Is that any way to use quad on my data? Thanks. 回答1: An answer to your question would be no. The only way to perform numerical integration for data with no expression in Matlab is by using the trapz