Trouble with findpeaks for EEG data from a csv file "Expected X to be strictly increasing" (x is the timestamp)
5 ビュー (過去 30 日間)
古いコメントを表示
Christina Diersing
2021 年 7 月 11 日
コメント済み: Christina Diersing
2021 年 7 月 12 日
Hi,
So I'm really new at working with EEG data and I am having trouble finding the peaks of data I imported from a csv file. This is the error I keep getting:
I can't find where the 'non-increasing' part of the timestamp is, and I don't know how to fix the problem. Can someone please help me with this?
I've attached a zip folder with the csv file I used and the Matlab code I tried to use.
0 件のコメント
採用された回答
Image Analyst
2021 年 7 月 11 日
You reversed the inputs. It's findpeaks(y, x), not findpeaks(x, y):
[peakValues, indexesOfPeaks] = findpeaks(AF3, timestamp);
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で EEG/MEG/ECoG についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!