evalmixedtf.m

来自「code of an ADC implementation woith matl」· M 代码 · 共 22 行

M
22
字号
function H=evalMixedTF(tf,f,df)% H=evalMixedTF(tf,f)% Compute the mixed transfer function tf at a frequency f.% tf is a struct array with fields Hs and Hz wich represent % a continuous-time/discrete-time tfs which must be multiplied together% and then added up.if nargin<3    df = 1e-5;endH = zeros(size(f));for i = 1:length(tf)    H = H + evalTFP(tf(i).Hs,tf(i).Hz,f);enderr = find(isnan(H)|isinf(H));if ~isempty(err)    % Need to fill in the holes. !! Use a "nearby" frequency point    for i=err	H(i) = evalMixedTF(tf,f(i)+df,df*10);    endend

⌨️ 快捷键说明

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