I am actually trying out something. it is not my homework and i have no idea since i am new to MATLAB software. can't figure out how to program the mfile
Homework Statement
Numerical integration using MATLAB m-files
Find the area under the curve of:
using trapezium rule
Homework Equations
g(x) = x^2 from x=0 to x=2
Area of a trapezium = h/2(a+b)
The Attempt at a Solution