Add example

This commit is contained in:
Ksyer
2024-05-09 16:54:58 +08:00
parent b91a609ca5
commit 17386d80c1
24 changed files with 3344 additions and 1 deletions
@@ -0,0 +1,11 @@
function [ stat ] = stat_window(signal, win_size)
n = length(signal);
stat = zeros(n, 1);
for i = 1: n
for j = 1: win_size
if i + j - 1 <= n
stat(i, 1) = stat(i, 1) + signal(i + j - 1, 1);
end
end
end
end