check_model.m

来自「SIMC PID tunning(Multivriable feedback c」· M 代码 · 共 21 行

M
21
字号
function check_model(sys)
% CHECK_MODEL  Checks LTI models for compatibility with the SIMC model
% reduction and PID tuning rules.
%
% CHECK_MODEL(SYS) checks the LTI model SYS.
%
% SIMC model reduction and PID tuning can only be applied to systems with:
%   No unstable poles (excluding integrating systems)
%   No oscillatory (complex) poles or zeros

% Author(s): Bora Eryilmaz, The MathWorks, Inc.

[Z,P] = zpkdata(sys, 'v');

if any(P > 0)
  error('Unstable processes (with the exception of integrating systems) cannot be handled by the SIMC tuning method.')
elseif ~isreal(P) || ~isreal(Z)
  error('Oscillating processes (with complex poles or zeros) cannot be handled by the SIMC tuning method.')
end
end

⌨️ 快捷键说明

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