How to avoid inf value while feature extracting in Matlab?

4 ビュー (過去 30 日間)
Maryam
Maryam 2019 年 5 月 17 日
コメント済み: Maryam 2019 年 5 月 17 日
I’m trying to extract features from some EEG signals. One of the trails in my for loop creates inf value and emd doesn’t accept it so it causes an error! Would you please tell me how I can fix it?! Thanks a lot in advance.
s = 1;
for i = LabelLeft
SignalL = SignalMean(H.TRIG(i)+fs:H.TRIG(i)+(3*fs)-1,1);
SignalLeft{s,:} = emd(SignalL,'MAXMODES',4);
s = s+1;
clear SignalL
end

採用された回答

KSSV
KSSV 2019 年 5 月 17 日
Fill this inf's either using fillgaps or fillmissing. REad about those functions. Or, remove them getting the indices of inf using isinf.
  1 件のコメント
Maryam
Maryam 2019 年 5 月 17 日
Thanks dude, it helped a lot.
I used fillgaps and the problem was fixed.

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

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeBiomedical Signal Processing についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by