필터 지우기
필터 지우기

How to implement 'Medfilt1' function into Simulink

조회 수: 5 (최근 30일)
Juster
Juster 2012년 6월 27일
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.
Regards.
  댓글 수: 2
Yash
Yash 2012년 6월 30일
do you have the option of incorporating command windown options in it and link a M file to your mdl?
Juster
Juster 2012년 7월 2일
Sorry but I didn't understand your question? Can you please put it in another form.
Thanks

댓글을 달려면 로그인하십시오.

채택된 답변

Ryan
Ryan 2012년 6월 29일
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).
  댓글 수: 5
Ryan
Ryan 2012년 7월 2일
편집: Ryan 2012년 7월 2일
If you do not have the tool box then you'll probably need to use the S-Function feature you mentioned (although I have personally never used it). There are examples that come with Matlab for those that can be browsed through the Simulink UI. I don't believe Simulink offers other methods for non-linear filtering (at least not for 2009b).
You might be able to figure out a more convoluted method using the 'sort' block from the signal processing toolbox, but using the s-function will most likely be faster or at least less frustrating.
Juster
Juster 2012년 7월 2일
So I will try to open another question where someone can help me to create an S-function equivalent to medfilt1 function.
Best regards

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Introduction to Installation and Licensing에 대해 자세히 알아보기

태그

제품

Community Treasure Hunt

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

Start Hunting!

Translated by