How do I get the value under the curve?
Info
This question is closed. Reopen it to edit or answer.
Show older comments
Hello,
I want know the value under a specific curve I have. I have already tried the command: area
But I want to know the exact value under the entire curve, I dont know which command(s) I have to use to get to this answer.
Can someone help me with this?

This is the script I am using.

Thanks in advance
5 Comments
Adam
on 19 Sep 2019
doc cumsum
doc trapz
doc cumtrapz
One of those should be able to help with what you want. I don't remember off-hand what each does specifically different to each other, but they can all be used for those type of problems.
HV
on 19 Sep 2019
Adam
on 19 Sep 2019
It's a long time since I've used them, but the help on each gives an example that you should be able to adapt.
darova
on 19 Sep 2019
I tried them but only got errors
What kind of errors do you have?
HV
on 27 Sep 2019
Answers (1)
Harsha Priya Daggubati
on 23 Sep 2019
0 votes
Hi
There is a similar question asked in the community. You can refer to the following link:
This question is closed.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!