필터 지우기
필터 지우기

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 CenterFile Exchange에서 Numerical Integration and Differentiation에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by