How to insert the mean in a plot?
12 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Enrica Brunetti
el 25 de Ag. de 2020
Respondida: Alan Stevens
el 26 de Ag. de 2020
In this plot I want to insert the mean, the variance and standard deviation of this signal. Is there a particular function or a toolbox that executes it?
0 comentarios
Respuesta aceptada
Alan Stevens
el 26 de Ag. de 2020
If you signal data is in vector y, say, then
ymean = mean(y);
ystddev = std(y);
yhi = ymean+ystdev;
ylo = ymean-ystdev;
xrange = [0 60]; % or whatever you want
plot(xrange, [ymean ymean],xrange,[ylo ylo], xrange, [yhi yhi])
0 comentarios
Más respuestas (0)
Ver también
Categorías
Más información sobre Multirate Signal Processing 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!