フィルターのクリア

area under curve for just 1 period

2 ビュー (過去 30 日間)
john
john 2012 年 2 月 21 日
hi i have a periodic function x_plot and id like to find the area under the curve for only one period. how would i be able to do preferably using numerical integration (sum of x(t)dt from t=0 to T) i tried to just type what i just did but cant do a calculation on it using 0 im a beginner and dont know much about matlab yet

回答 (1 件)

Honglei Chen
Honglei Chen 2012 年 2 月 21 日
There are many integration methods in MATLAB, just pick one of them.
doc quad
doc quadl
doc integral
I'll use quad as an example. Let's say I want to integrate a sin function, which has a period of 2*pi,
quad(@sin,0,2*pi)

カテゴリ

Help Center および File ExchangeMathematics and Optimization についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by