inband.m

来自「matlab下实现kaplan算法」· M 代码 · 共 14 行

M
14
字号
function s = inband(powspec,firstbin,lastbin)% s = inband(powspec,firstbin,lastbin)% calculates the integral between first and last% powspec -- the left half on an fft% firstbin -- the lower index (not frequency, but bin number)% lastbin  -- the upper index (not frequency, but bin number)foo = 1:length(powspec);gbins=find(foo >= firstbin & foo <= lastbin);goo=powspec(gbins);s = sum(goo);

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?