How to implement 'Medfilt1' function into Simulink

8 views (last 30 days)
Hello everybody,
unfortunatelly I'm not finding the equivalent Simulink block of 'Medfilt1' function implemented in Matlab(R2010a).
Have you any suggestion to solve this problem?
I heard the possibility to use S-function in order to get an embedded Matlab function into Simulink, also if I don't know how I can do that.
Any advice is well accepted.
Thanks in advance.
Juster on 2 Jul 2012
Sorry but I didn't understand your question? Can you please put it in another form.

Sign in to comment.

Accepted Answer

Ryan on 29 Jun 2012
If you have the Video and Image Processing Blockset, use the 2D median filter and change the "Neighborhood size" to 1xN or Nx1 (depending on the format of the 1D vector you're feeding in).
Juster on 2 Jul 2012
So I will try to open another question where someone can help me to create an S-function equivalent to medfilt1 function.
Best regards

Sign in to comment.

More Answers (0)



Community Treasure Hunt

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

Start Hunting!

Translated by