Курсовая работа: Проектування блоку обробки сигналів
for n=4:(N-3),
err3=err3+(ys(n-2)-yf_out2(n+2))^2;
end
err3=sqrt(err3/n);
ampz_t_ok=1:641;
for i=1:(length(ampz_t_ok)),
ampz_t_ok(i)=ampz_tsr(i)*ampz_t(i);
end
scf(17)
plot2d(frq_s,ampz_t_ok,logflag="ln")
xgrid()
scf(18)
subplot(311), plot2d(frq_s(1:400),ampz_t_ok(1:400),logflag="ln"),xgrid()
subplot(312), plot2d(f(1:400),ampsi(1:400),logflag="ln"), xgrid()
//subplot(413), plot2d(f(1:400),amp(1:400),logflag="ln"), xgrid()
subplot(313), plot2d(frq_s(1:400),ach2(1:400),logflag="ln"), xgrid(), xgrid()