Power of sine wave plot
조회 수: 44 (최근 30일)
이전 댓글 표시
I have a power spectrum for my model. I would like to add sine wave as a drive with power spectrum. I don't know how to calculate the power of sine wave? Can I add the sine wave with power? Can anyone help me, please?
댓글 수: 0
채택된 답변
Rishabh Rathore
2018년 5월 28일
편집: Rishabh Rathore
2018년 5월 28일
Here's what I understand from your question, you want to know how to calculate 'Power' of sine wave and plot it over Power Spectrum of your model.
Power of the sine wave A*sin(x), is (A^2)/2, but only when A is constant. If the amplitude is varying, then integrate the wave over one time period and divide it by the time period to get the power.
You can then use this to add/plot the corresponding value on the Power spectrum of your model.
To plot the power of Sine wave over the existing plot, use hold on and hold of.
댓글 수: 4
Rishabh Rathore
2018년 5월 28일
it is because of the line
psdx = (1/(Fs*N)) * abs(xdft).^2;
The absolute value is squared.
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Parametric Spectral Estimation에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!