How can I use decreasing x-data using findpeaks?
古いコメントを表示
Hello everyone,
I want to analyse my Cyclic Voltammetry data on its peaks, which has increasing and decreasing X values and their own corresponding Y values. For this, I just installed the necessary toolbox, but when I try to run the following code:
[pks, LOCS] = findpeaks(GlucoseS3{:,4}, GlucoseS3{:,1});
I get the following error:
Error using findpeaks
Expected X to be strictly increasing.
I reckon that the code recognises GlucoseS3{:,1} to be X, and have increasing as well as decreasing values.
How can I change this code to accept decreasing X values, as I have to analyse a lot of datasets with each 700 points.
回答 (1 件)
KSSV
2021 年 3 月 3 日
May be you should try:
[pks, LOCS] = findpeaks(GlucoseS3{:,1}, GlucoseS3{:,4});
2 件のコメント
Jort Puiman
2021 年 3 月 3 日
Yasuyuki Hamanaka
2021 年 6 月 19 日
Would you tell me how to solve the problem?
カテゴリ
ヘルプ センター および File Exchange で Descriptive Statistics についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!