How to calculate average of a sine signal in simulink?

조회 수: 9 (최근 30일)
Balasubrahmanya Patel Kuinthodu Ganesh
댓글: Aykut Satici 2015년 10월 4일
I have a sine signal which has a peroid of 100s, i want the average value of the signal for every 10s. ie. i need 10 average values.
  댓글 수: 1
Aykut Satici
Aykut Satici 2015년 10월 4일
Why don't you take it by hand?
1/10 Integral_10k^10(k+1) Sin(2*pi/100*t) dt = -5/pi*Cos(2*pi/100*t)|_10k^10(k+1) = 5/pi*( Cos(2*pi*k/10) - Cos(2*pi*(k+1)/10) )
as k varies from 0 to 9.

댓글을 달려면 로그인하십시오.

답변 (1개)

Subhra Saha
Subhra Saha 2015년 10월 1일
One way is to write the output of sine signals to MATLAB Workspace as an array and from there you can take out values and calculate the average.

카테고리

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

Community Treasure Hunt

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

Start Hunting!

Translated by