pid_tf.m

来自「内模控制器(IMC)工具箱。包括参数整定、PID控制器参数转换等」· M 代码 · 共 16 行

M
16
字号
function [numC,denC]=pid_tf(numPs,denPs,numT,denT,numPinvs,denPinvs,denFs)
%This function compute PID equivalent transfer function, q/(1-pq).
%(The resulting numC, denC will be used to compute PID prarmeter later)

[numPQ,denPQ]=combind(numPs,denPs,denPinvs,numPinvs);

% Form final PQ including deadtime

numPQ=conv(numPQ,numT);
denPQ=conv(denPQ,denT);

% Form C = Q/(1-PQ) to be approximated with the PID

numC=conv(denPinvs,denPQ);
denC=conv(numPinvs,polyadd(conv(denPQ,denFs),-numPQ));

⌨️ 快捷键说明

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