How can I find the mean of signal?

8 visualizaciones (últimos 30 días)
Ali Qutub
Ali Qutub el 5 de Abr. de 2021
Respondida: Image Analyst el 5 de Abr. de 2021
How I can find the mean?
I have this code and I want to know plot the medaian of y and y1 and cikis 4 and plot it in figure
[y,fs]= audioread('1 normal.mp3');
[y1,fs]= audioread('1 problem.mp3');

Respuestas (1)

Image Analyst
Image Analyst el 5 de Abr. de 2021
Not sure what "medaian" is but there are functions for mean and median. Did you try either of them? Also, what does "cikis 4" mean?
[y,fs]= audioread('1 normal.mp3');
[y1,fs]= audioread('1 problem.mp3');
plot(y, 'b-', 'LineWidth', 2);
hold on;
plot(y, 'r-', 'LineWidth', 2);
meany = mean(y(:));
yline(meany, 'Color', 'b', 'LineWidth', 2);
meany1 = mean(y1(:));
yline(meany1, 'Color', 'r', 'LineWidth', 2);
Attach the mp3 files if you need more help.

Categorías

Más información sobre Signal Processing Toolbox 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