Borrar filtros
Borrar filtros

How to calculate average of a sine signal in simulink?

8 visualizaciones (últimos 30 días)
Balasubrahmanya Patel Kuinthodu Ganesh
Comentada: Aykut Satici el 4 de Oct. de 2015
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 comentario
Aykut Satici
Aykut Satici el 4 de Oct. de 2015
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.

Iniciar sesión para comentar.

Respuestas (1)

Subhra Saha
Subhra Saha el 1 de Oct. de 2015
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.

Categorías

Más información sobre Simulink en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by