採用された回答

David Young
David Young 2011 年 10 月 11 日

1 投票

Assuming your data are stored as a row vector D, and the sampling interval is T ms, and you have the Image Processing Toolbox, you could do this:
windowlength = 100;
windowsize = ceil(windowlength/T);
D_filtered = medfilt2(D, [1 windowsize]);
If the data are stored as a column vector, use
D_filtered = medfilt2(D, [windowsize 1]);
instead of the final line.

1 件のコメント

bruno
bruno 2022 年 12 月 17 日
I have 2 cols and 6000 rows in a mat file. How can I apply relaxed median filter? Im not able to understand how to set window and lower and upper bounds for mat file which is 2 cols and 6000rows.

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

ヘルプ センター および File ExchangeSignal Processing Toolbox についてさらに検索

質問済み:

2011 年 10 月 11 日

コメント済み:

2022 年 12 月 17 日

Community Treasure Hunt

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

Start Hunting!

Translated by