What is the problem? It seems to work very nicely for me:
Rnum = MSipesR('x.^6',0,1,4)
Rnum =
0.1506 0.1430 0.1429 0.1429
Check, using quad:
quad(@(x) x.^6,0,1)
ans =
0.1429
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!