Find the mean value of a signal

114 visualizaciones (últimos 30 días)
IDR Sarah
IDR Sarah el 2 de Dic. de 2020
Respondida: KSSV el 2 de Dic. de 2020
Hello,
I would like to find the average value of the following signal, which I got by:
y = plot (p (t:, 2))
Thanks
  2 comentarios
KSSV
KSSV el 2 de Dic. de 2020
Read about the function mean.
IDR Sarah
IDR Sarah el 2 de Dic. de 2020
Thanks,
I did.
I am a beginner, I did not understand it very well.

Iniciar sesión para comentar.

Respuestas (1)

KSSV
KSSV el 2 de Dic. de 2020
If you have an array a, use mean(a).
a = rand(1,100) ;
plot(a) ;
a_avg = mean(a)
a_avg = 0.4712

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by