How to avoid inf value while feature extracting in Matlab?
4 次查看(过去 30 天)
显示 更早的评论
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
0 个评论
采纳的回答
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.
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Biomedical Signal Processing 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!