Scatter Plot of Local Minimums

3 vues (au cours des 30 derniers jours)
Soeun Lee
Soeun Lee le 20 Juil 2021
Commenté : Chunru le 20 Juil 2021
I'm trying to create a scatter plot using the local minima of the graph. However, it also marks a bunch of other points that are not minima. Please kindly let me know what is wrong with my code.
threshold = -0.0001;
[pks,locs] = findpeaks(-neural.spikes,'MinPeakHeight',abs(threshold));
figure
plot(neural.Time,neural.spikes); hold on
line([min(neural.Time) max(neural.Time)],[threshold threshold],'color','r','LineWidth',1)
  2 commentaires
KSSV
KSSV le 20 Juil 2021
You specify the number of peaks you want, plot and then see.
Chunru
Chunru le 20 Juil 2021
Zoom in to your data to see if there is multiple peaks.

Connectez-vous pour commenter.

Réponses (0)

Catégories

En savoir plus sur Scatter Plots dans Help Center et File Exchange

Produits

Community Treasure Hunt

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

Start Hunting!

Translated by