📄 hold_on_tf.pro
字号:
; $Id: hold_on_tf.pro,v 1.2 2002/03/14 11:49:11 riccardi Exp $;+; ; NAME;; HOLD_ON_TF;;; tf = hold_on_tf(s, T);; Return the (Laplace) Tranfer Function associated to the Hold-on; (DAC) effect for a digital signal with period T.; s vector of complex frequency [rad/s] (s = sigma + i*omega); T period [s];; 1 - exp(-s*T) sinh(s*T/2); TF(s) = ---------------- = ----------- * T*exp(-s*T/2); s s*T/2;;-function hold_on_tf, s, Tiu = complex(0.0, 1.0)idx = where(s ne 0.0, count)sT2 = s*T/2.0tf = exp(-sT2) * Tif count ne 0 then begin tf[idx] = (0.5*(exp(sT2)-exp(-sT2))[idx]/sT2[idx])*tf[idx]endifreturn, tfend
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -