필터 지우기
필터 지우기

Scatter Plot of Local Minimums

조회 수: 1 (최근 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