Trouble with findpeaks for EEG data from a csv file "Expected X to be strictly increasing" (x is the timestamp)
조회 수: 7 (최근 30일)
이전 댓글 표시
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:
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/681458/image.jpeg)
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!