Matched filter in function matlab simulink

I'm trying to implement a matched filter from an input u and an output y using the matlab function block in Simulink.
In the website it says that I can use this commands
H = phased.MatchedFilter creates a matched filter System object™, H. The object performs matched filtering on the input data.
H = phased.MatchedFilter(Name,Value) creates a matched filter object, H, with each specified property Name set to the specified Value. You can specify additional name-value pair arguments in any order as (Name1,Value1,...,NameN,ValueN).
How could I do that?
Thanks in advance

Answers (1)

Here is an example:
x = ones(10,1);
mf = phased.MatchedFilter('CoefficientsSource','Input port');
y = step(mf,x,conj(flipud(x)))
If you have R2014b, you don't have to go through this, you can directly use the matched filter block in the Phased Array System Toolbox library
Just set Source of Coefficients to Input port and hook the flipped coefficients to the coefficient port.
HTH

Asked:

on 24 Jan 2015

Answered:

on 26 Jan 2015

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!