Why has the peaks width changed?

Hello, I have a program I'm seaching peaks and their widths. When I search the highest peak and its width I have two values to width. When a use "[pks,w]=findpeaks(fE1,'SortStr','descend');" , I have a width A e when a use "[pks,w]=findpeaks(fE1)" I have a width B, being A<B.
What is it wrong? How can I arrange that wrong?

2 Comments

How exactly do you search for 'the highest peak'? The first peak will of course be higher in the first case whereas it may or may not be first in the second case
Attach your data, or at least a screenshot of the plot, so we don't have to work blind.

Answers (0)

This question is closed.

Products

Asked:

on 25 Sep 2018

Closed:

on 20 Aug 2021

Community Treasure Hunt

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

Start Hunting!