Hi y'all, I'm having an issue with this logic. I need to find the average power of but I don't see what I am doing wrong with this. Nothing shows up when I read my start.au and thusly, I'm not sure about my voiced and un_voiced segments.
clc;
clear all;
[x, Fs] = audioread('start.au');
plot(x, Fs);grid on;
title('raw speech data');
xlabel('samples');ylabel('amplitude');
L = 300;
x_voiced = x(L:0+ L-1);
x_unvoiced = x(L:0 + L-1);
P_voiced = sum(x_voiced)/L;
P_unvoiced = sum(x_unvoiced)/L;
2 Comments
Direct link to this comment
https://es.mathworks.com/matlabcentral/answers/492238-how-do-you-find-average-power#comment_769551
Direct link to this comment
https://es.mathworks.com/matlabcentral/answers/492238-how-do-you-find-average-power#comment_769551
Direct link to this comment
https://es.mathworks.com/matlabcentral/answers/492238-how-do-you-find-average-power#comment_769554
Direct link to this comment
https://es.mathworks.com/matlabcentral/answers/492238-how-do-you-find-average-power#comment_769554
Sign in to comment.