How to filter high amplitude signals ?

13 ビュー (過去 30 日間)
Jingqi Sun
Jingqi Sun 2022 年 12 月 2 日
コメント済み: Jingqi Sun 2022 年 12 月 3 日
Hello, I have some signals and I want to only keep high amplitude signals. All of my signals have a sine wave shape, some might have glitches. This is what I want to achieve:
!I have 39 signals
c=[]
for i = 1:39
if max(signal(i))> Amplitudelimit
c(1,end+1)=i
end
end
Does matlab have built in function for this operation?
Thank you.

採用された回答

Askic V
Askic V 2022 年 12 月 2 日
編集済み: Askic V 2022 年 12 月 2 日
I think this can do just fine:
rand_arr = 1+2*randn(100,1);
plot(rand_arr, 'o');
hold on
amp_level = 2; % treshold
filt_arr = rand_arr;
filt_arr(filt_arr < amp_level) = 0;
plot(filt_arr, 'r*');
ylim([-10 10]);
  1 件のコメント
Jingqi Sun
Jingqi Sun 2022 年 12 月 3 日
Thank you so much!

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

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeMatched Filter and Ambiguity Function についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by