peak_pick.m

来自「This is transfer function for matlab.」· M 代码 · 共 14 行

M
14
字号
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 + =
减小字号Ctrl + -
显示快捷键?