フィルターのクリア

How to integrate the following function?

2 ビュー (過去 30 日間)
Shobhit
Shobhit 2017 年 7 月 22 日
回答済み: Star Strider 2017 年 7 月 22 日
mag = @(x)((1 - cos(x))./(1.25 + cos(x)).^1.5) With x ranging from 0 to 2*pi I used the command q = inetegral(mag, 0,2*pi) But I keep getting errors. Can somebody help me here?

回答 (1 件)

Star Strider
Star Strider 2017 年 7 月 22 日
If you spell integral correctly, it works:
mag = @(x)((1 - cos(x))./(1.25 + cos(x)).^1.5);
q = integral(mag, 0,2*pi);
q =
19.9868

カテゴリ

Help Center および File ExchangeNumerical Integration and Differentiation についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by