[10] Fill in missing vectors B & A in filter so the 1st 32768 values of Z and X agree.
This recovers original gong signal from the signal+reverberations. Explain why it works.
You need a total of 3 nonzero coefficients. You can use z-transforms, but thinking is easier.
clear; load gong; N=[1:32768]; X=(y(N))'; Y=X; Y(65536)=0;
for I=1:31; Y=Y+[zeros(1,1024*I) (0.8^I)*X zeros(1,1024*(32-I))]; end
subplot(2,2,1),plot(N,X); subplot(2,2,2),plot(N,Y(N)); Z=filter(B,A,Y);
subplot(2,2,3),plot(N,Z(N)); subplot(2,2,4),plot(N,Z(N)-X)