Mark the values which are considered as spikes in the data

7 ビュー (過去 30 日間)
nela1
nela1 2021 年 10 月 29 日
移動済み: Sabin 2023 年 1 月 7 日
The data is contained within a column vector. I need to find the so called spikes i.e. find their indices so I can later replace those values using linear interpolation. In the question it says: Consider a spike when the difference between consecutive values is larger than 750.
I am assuming I need to write a for loop to iterate through the vector and compare each element with the one before it, but since I am new to Matlab I am not sure how to approach this.
Thank you

回答 (1 件)

Akira Agata
Akira Agata 2021 年 10 月 30 日
移動済み: Sabin 2023 年 1 月 7 日
I believe findpeaks or isoutlier will detect spikes.
To investigate which (or some other) method will work, could you upload a sample data if possible?

カテゴリ

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

Community Treasure Hunt

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

Start Hunting!

Translated by