Calculus with MATLAB, area under the curve

Write a Matlab function M-file that carries out the calculation of area under the curve for any function f,interval [a,b] and choice of n regular partitions. Example: myReiemannSum.m
I need to find another method to solve this question instead of the example given. Is that possible to write a function to calculate any area under any function ?

回答 (2 件)

Titus Edelhofer
Titus Edelhofer 2015 年 7 月 22 日

0 投票

Hi,
the "area under a curve" is also known as integrating the function. This should give you a starting point for searching ...
Titus
Jan
Jan 2015 年 7 月 22 日

0 投票

Take the time to search in the internet before asking a question.
You will find a lot of matching answers, e.g. even here in the forum: http://www.mathworks.com/matlabcentral/answers/229878-matlab-function-of-area-under-the-curve

カテゴリ

ヘルプ センター および File ExchangeMathematics and Optimization についてさらに検索

製品

質問済み:

2015 年 7 月 22 日

回答済み:

Jan
2015 年 7 月 22 日

Community Treasure Hunt

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

Start Hunting!

Translated by