Can anyone convert this Pseudocode into Matlab?
Show older comments
FUNCTION Simp13m (h, n, f)
sum = f(0)
DOFOR i=1, n-2, 2
sum = sum + 4 * f_i + 2 * f_i+1
END DO
sum = sum + 4 * f_n-1 + f_n
Simp13m = h * sum / 3
END Simp13m
Accepted Answer
More Answers (0)
Categories
Find more on Programming in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!