clear all
close all

y = zeros([100,1]);
e = zeros([100,1]);
%e = randn([100,1]);
e(20) = 1;

alpha = 0.7;

for t = 2:100
    y(t) = alpha * y(t-1) + e(t)
end

figure
plot(y)
grid

