매트랩 질문합니다 적분을 이용하지 않고 더하기로만

3 views (last 30 days)
JeoungIn Kim
JeoungIn Kim on 13 Apr 2020
Answered: Angelo Yeo on 7 May 2025
이 문제의 경우에는 sum 함수를 이용하나요..? 모르겠네요 질문 드려요

Answers (1)

Angelo Yeo
Angelo Yeo on 7 May 2025
가령 A = 3이고 주기는 T=2라고 해보겠습니다. 샘플 주파수는 100kHz로 정하겠습니다.
A = 3; T = 2;
fs = 100e3;
dt = 1/fs;
t = -T/2:dt:T/2;
x = A * cos(2*pi/T*t);
Px1 = 1/T*sum(x.^2)*dt
Px1 = 4.5000
Px2 = A^2/2
Px2 = 4.5000
계산 결과 Px1Px2가 거의 같은 것을 알 수 있겠네요.

Categories

Find more on MATLAB in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!