ord2.m
来自「数字通信第四版原书的例程」· M 代码 · 共 25 行
M
25 行
function [a,b,c,d] = ord2(wn, z)
%ORD2 Generate continuous second order system.
% [A,B,C,D] = ORD2(Wn, Z) returns the A,B,C,D representation of the
% continuous second order system with natural frequency Wn and
% damping factor Z.
%
% [NUM,DEN] = ORD2(Wn,Z) returns the polynomial transfer function of
% the second order system.
%
% See also: RMODEL and TF2SS.
% Copyright (c) 1986-93 by the MathWorks, Inc.
error(nargchk(2,2,nargin));
if nargout==4, % Generate state space system
a = [0 1;-wn*wn, -2*z*wn];
b = [0;1];
c = [1 0];
d = 0;
else
a = 1;
b = [1 2*z*wn wn*wn];
end
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?