📄 pronyfreq.m
字号:
function [F]=pronyfreq(C,Sp,fr,Ts)% [F]=pronyfreq(C,Sp,fr,Ts)% Use the method of Prony representation of a time response to determine% the frequency repsonse or spectrum.% In:% C vector of amplitude coefficients from prony exponential series% Sp vector of poles% fr=frequency value(s)% Ts=time domain sample rate?% Out:% F=complex frequency response% J. F. Dawson 27 Oct 1999%How many polesNp=rows(Sp)%How many frequenciesNf=rows(fr)% compute jwjw=2j*pi.*fr; %column vector% Compute jw-SpW=jw*ones(1,Np); % Nfx1 * 1xNp => NfxNpS=ones(Nf,1)*Sp.'; % Nfx1 * 1xNp => NfxNp%Coefficient matrixD=ones(Nf,1)*C.'; % Nfx1 * 1xNp => NfxNp%Do coefficient multiply and summation F=D./(W-S); % coefficient/Denominator % NfxNp F=F*ones(Np,1); % Summation % NfxNp * Npx1 =>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -