integration problem
이전 댓글 표시
I need to integrate f(x)*cos(x)dx for x from 0 to 2*pi.
For f(x), I have a list of 33 y-values with corresponding x=[0:2*pi/32:2*pi].
How do I integrate this in MATLAB?
답변 (2개)
Walter Roberson
2012년 5월 17일
trapz(x,y .* cos(x))
mohan krishna
2023년 2월 15일
0 개 추천
integral phi/2 0 cosxdx
카테고리
도움말 센터 및 File Exchange에서 Creating, Deleting, and Querying Graphics Objects에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!