필터 지우기
필터 지우기

i cant seem to integrate the code

조회 수: 2 (최근 30일)
Gihahn
Gihahn 2024년 4월 19일
편집: Umang Pandey 2024년 4월 19일
an=(1/T)*(int(3*cosd((k*wo*x)/T),0,0.01)+int(-3*cosd((k*wo*x)/T),0.01,0.02))
it does not seem to work when i try to integrate the code

답변 (1개)

Umang Pandey
Umang Pandey 2024년 4월 19일
편집: Umang Pandey 2024년 4월 19일
Hi Gihahn,
To perform the integration, you need to use the int function from the Symbolic Math Toolbox and also ensure syms is used to define symbolic variables x, k, wo, and T.
Here's an example of how you can integrate your expression:
syms x k wo T
an = (1/T)*(int(3*cosd((k*wo*x)/T),0,0.01) + int(-3*cosd((k*wo*x)/T),0.01,0.02))
an = 
You can refer to the following MATLAB documentation for more information:
Best,
Umang

카테고리

Help CenterFile Exchange에서 Calculus에 대해 자세히 알아보기

제품


릴리스

R2022b

Community Treasure Hunt

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

Start Hunting!

Translated by