git-svn-id: http://moon:8086/svn/matlab/trunk@153 801c6759-fa7c-4059-a304-17956f83a07c
This commit is contained in:
2021-03-22 20:28:22 +00:00
parent 1b5742e13e
commit b31f3e7435
140 changed files with 6054 additions and 0 deletions
Executable
+13
View File
@@ -0,0 +1,13 @@
% Power estimation on discrete signals
function y = rms(x,Nw)
N = length(x);
y = zeros(1,N);
y(1) = x(1)^2;
for k = 2:N-Nw,
for n = k:Nw+k,
y(n) = y(n-1)*(1-1/Nw) + 1/Nw*x(n)^2;
end;
end;