Problem 43290. Calculate numerical integration.

Solution 1006142

Submitted on 10 Oct 2016 by Sujin Choi
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.

This solution is outdated. To rescore this solution, sign in.

Test Suite

Test Status Code Input and Output
1   Pass
x=0:0.01:1; y=x.^2; z_correct = trapz(x,y) assert(isequal(your_fcn_name(x),z_correct))

z_correct = 0.3333 z = 0.3333

Suggested Problems

More from this Author27

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!