How can I find the mean of signal?
8 views (last 30 days)
Show older comments
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');
0 Comments
Answers (1)
Image Analyst
on 5 Apr 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.
0 Comments
See Also
Categories
Find more on Signal Processing Toolbox in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!