Why matched filter in Simulink does not return the same results like in Matlab?
조회 수: 1 (최근 30일)
이전 댓글 표시
Hi, I have a problem with matched filtering. In Matlab I create a script:
if true
noise_real = wgn(1,1000,5);
noise_imag = wgn(1,1000,5);
noise_complex = complex(noise_real,noise_imag);
noise.time = [];
noise.signals.dimensions = 1;
noise.signals.values = [noise_complex].';
template = noise_complex(400:499);
coeffictions = conj(template(end:-1:1));
coef.time = [];
coef.signals.dimensions = 1;
coef.signals.values = conj(template(end:-1:1)).';
mf_output = filter(coeffictions,1,noise_complex);
plot(abs(mf_output));
end
which provides me perfect matched filtration of generated noise. I wanted to create the same filtration in Simulink using "From Workspace" blocks separately for coefficients with cyclic repetition feature. I wast trying few kinds of filters without any result. I mean that I can't get the same plot from Simulink as I got from Matlab using metioned script. I am enclosing plot from matlab and simulink for comparison. Question is: how filter in Simulink works? Do they upload all samples and after accumulation of enough samples starting to perform convolution? How schould I perform my computation to obtain the same result like in Matlab. Thanks
댓글 수: 0
답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Filter Analysis에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!