📄 peak_pick.m
字号:
function n = peak_pick( x );%% FUNCTION n = peak_pick( x )%% The function peak_pick() returns the indices of the peaks of the% row vector x.%lenx = length(x);xnm1 = x(1:lenx-2);xn = x(2:lenx-1);xnp1 = x(3:lenx);n = find( (xn>xnm1) & (xn>xnp1) );n = n + 1;
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -