www.gusucode.com > control 案例程序 matlab源码代码 > control/CreateMIMOTransferFunctionModelExample.m
%% Create MIMO Transfer Function Model % Create a transfer function for the discrete-time, multi-input, % multi-output model: % % $$H\left( z \right) = \left[ {\begin{array}{*{20}{c}} % {\frac{1}{{z + 0.3}}}&{\frac{z}{{z + 0.3}}}\\ % {\frac{{ - z + 2}}{{z + 0.3}}}&{\frac{3}{{z + 0.3}}} % \end{array}} \right]$$ % % with sample time |Ts = 0.2| seconds. %% % Specify the numerator coefficients as a 2-by-2 matrix. Numerators = {1 [1 0];[-1 2] 3}; %% % Specify the coefficients of the common denominator as a row vector. Denominator = [1 0.3]; %% % Create the discrete-time transfer function model. Ts = 0.2; H = tf(Numerators,Denominator,Ts);