oneortwo_cond.m
来自「这里面包含源数多于传感器数的文章和相关源代码。」· M 代码 · 共 16 行
M
16 行
function condi=oneortwo_cond(X1,X2,fs,f_low,f_high)%%% returns condition number of covariance matrix between the masked stereo%%% signals. A high condition number indicates that only a single source is in the mixture. if nargin==3 f_low=500; %low BP cutoff frequency f_high=3500; %low BP cutoff frequencyend[B,A]=butter(8,[f_low f_high]/(fs/2));Xf1=filter(B,A,X1);Xf2=filter(B,A,X2);X=[Xf1;Xf2];R=X*X';R;condi=cond(R);%%% actually the same as condi=(max(eig(R))/min(eig(R)))
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?