How to calculate the integration with Matlab?
Show older comments
I need support in calculating integration of function below. I tried to use int(), integral() in matlab documentation, but it did not work. You can help me either by providing key works so that I google it, or providing me matlab code as an example for later use. Thanks

2 Comments
Jan
on 26 Mar 2018
This looks like a homework question: "10pt". Then please post, what you have tried so far and ask a specific question. See how-do-i-get-help-on-homework-questions. Thanks.
Rena Berman
on 5 Apr 2018
(Answers Dev) Restored edit
Accepted Answer
More Answers (1)
Walter Roberson
on 26 Mar 2018
0 votes
When you have a fixed number of samples then evaluate the function at the provided locations and use trapz()
1 Comment
Trung Khoa Le
on 26 Mar 2018
Categories
Find more on Programming in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!