Question: matlab write an mfile that calculates the minimum number of...
Question details
MATLAB
Write an mfile that calculates the minimum number of segments `n’ required to integrate the function
to achieve a percentage error of 0.01% or less when compared to the quad function. Complete this task for the

Composite trapezoidal rule

Composite Simpson’s 1/3 rule