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

이 문제의 경우에는 sum 함수를 이용하나요..? 모르겠네요 질문 드려요

Respuestas (1)

Angelo Yeo
Angelo Yeo el 7 de Mayo de 2025

0 votos

가령 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가 거의 같은 것을 알 수 있겠네요.

Categorías

Más información sobre MATLAB en Centro de ayuda y File Exchange.

Preguntada:

el 13 de Abr. de 2020

Respondida:

el 7 de Mayo de 2025

Community Treasure Hunt

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

Start Hunting!