매트랩 질문합니다 적분을 이용하지 않고 더하기로만
5 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
이 문제의 경우에는 sum 함수를 이용하나요..? 모르겠네요 질문 드려요

0 Commenti
Risposte (1)
Angelo Yeo
il 7 Mag 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
Px2 = A^2/2
계산 결과 Px1과 Px2가 거의 같은 것을 알 수 있겠네요.
0 Commenti
Vedere anche
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!