📄 ord2.m
字号:
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 + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -