area between the function and the x-axis

This is my final exam's question
write a matlab program line that finds the area between the function and the x-axis in the interval 0<x<1

Answers (1)

Hint: Use the following function
trapz
As this is your exam question, therefore I cann't elaborate more.
Learn by trying yourself, if you stuck anywhere, let us know.
Good Wishes!

This question is closed.

Closed:

on 20 Aug 2021

Community Treasure Hunt

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

Start Hunting!