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

Risposte (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!

Questa domanda è chiusa.

Chiuso:

il 20 Ago 2021

Community Treasure Hunt

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

Start Hunting!

Translated by