Scatter Plot of Local Minimums

3 次查看(过去 30 天)
Soeun Lee
Soeun Lee 2021-7-20
评论: Chunru 2021-7-20
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 个评论
KSSV
KSSV 2021-7-20
You specify the number of peaks you want, plot and then see.
Chunru
Chunru 2021-7-20
Zoom in to your data to see if there is multiple peaks.

请先登录,再进行评论。

回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Scatter Plots 的更多信息

产品

Community Treasure Hunt

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

Start Hunting!

Translated by