Function used to calculate average power
This function sholud be used along with funciton adapt_filt
function[y]= pow_1(x,N)
xold = 0.0;
for n =1:N
sumx = xold+(x(n)^2);
xold = sumx;
end
y = sumx/N;
endfunction
This function sholud be used along with funciton adapt_filt
function[y]= pow_1(x,N)
xold = 0.0;
for n =1:N
sumx = xold+(x(n)^2);
xold = sumx;
end
y = sumx/N;
endfunction