To calculate the error of an integral from a 2 column data set using repeated Simpson's rule in MATLAB, you can follow the steps given below:
main.m29 chars2 lines
main.m26 chars2 lines
main.m40 chars3 lines
main.m25 chars2 lines
main.m13 chars2 lines
main.m121 chars6 lines
main.m64 chars2 lines
main.m76 chars3 lines
Note that in the above code, it is assumed that the 2 column data set is stored in a text file named "data_set.txt" in the current working directory. If this is not the case, you will need to modify the path in the load command accordingly.
gistlibby LogSnag