Why is my findpeaks function not working here?

5 ビュー (過去 30 日間)
Zifeng Qiu
Zifeng Qiu 2020 年 10 月 21 日
回答済み: Star Strider 2020 年 10 月 22 日
I was trying to find the peaks of my wave output, but for some reason it's not working, I don't know why.
vv = xlsread('1data.xlsx','A7:A100006')'; % voltage output
t = [-0.4:0.00001:0.59999]; % time
plot(t,vv);
findpeaks(vv,t);
it find pretty much all the points on the curve.

回答 (1 件)

Star Strider
Star Strider 2020 年 10 月 22 日
You likely have significant noise, and hte noise is being detected as peaks. Use the 'MinPeakProminence' name-value pair to return only the ones you want. (This will take some experimentation, so be patient.)

カテゴリ

Help Center および File ExchangeDescriptive Statistics についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by