How can I write the same code without using medfilt1 command?

 채택된 답변

Image Analyst
Image Analyst 2015년 12월 12일

0 개 추천

You can use the median() function. Then you just have to put that inside a for loop, which is extremely trivial.
Is this homework? Or do you just not have the Signal Processing Toolbox?

댓글 수: 2

Gokcen YARICI
Gokcen YARICI 2015년 12월 12일
편집: Gokcen YARICI 2015년 12월 12일
I didn't know what to do first. Yes, Its homework and dont get me wrong by the way. I didn't want you are doing it for me. Just I want to some hints how to start write this.
Thank you.
Ps: I am still inexprienced in the matlab. So I am still learning. Again thanks for sharing your thoughts.
You're welcome - that's what I thought so that's why I didn't just do it outright for you. Thanks for accepting. If you have any trouble or error messages, then attach your code and we'll see how to fix it. But it's basically
for k = .....
filteredSignal(k) = med(...........
end
subplot(2,1,1);
plot(originalSignal,......
subplot(2,1,2);
plot(filteredSignal,......

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

추가 답변 (1개)

Jan
Jan 2015년 12월 12일

0 개 추천

Please take the time to post, what you have tried so far. Note that you will get many working medfilt1 replacement codes, if you ask your favorite internet search engine.

카테고리

태그

질문:

2015년 12월 12일

편집:

2015년 12월 14일

Community Treasure Hunt

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

Start Hunting!

Translated by