- refactored

This commit is contained in:
2022-06-30 13:32:40 +02:00
parent 77cd5261b1
commit 776932e5d1
144 changed files with 0 additions and 38 deletions
+9
View File
@@ -0,0 +1,9 @@
% Power estimation on discrete signals
function [y,yf] = sm2(x,yi,arf)
N = length(x);
x(1) = x(1) + yi*(1/arf-1);
x = abs(x);
a = [1,-(1-arf)];
y = filter(arf,a,x);
yf = y(N);