- 21
- 0
- 约 9页
- 2016-12-28 发布于贵州
- 举报
实验三 利用时域分析技术的MATLAB实现
【Experimental Purposes】
1、熟悉并掌握MATLAB的工作环境。
2、了解时域分析法的基本理论。
3、在MATLAB工作环境下,选择适当的例子,实现时域分析控制,讨论其控制效果。
【Experimental Principle】
SISO (single-input/single-output) Transfer Function Models
A continuous-time SISO transfer function
is characterized by its numerator and denominator, both polynomials of the Laplace variable .
There are two ways to specify SISO transfer functions:
?Using the tf command
?As rational expressions in the Laplace variable
To specify a SISO transfer function model using the tf command, type
h = tf(num,den)
where num and den are row vectors listing the coefficients of the polynomials and , respectively, when these polynomials are ordered in descending powers of . The resulting variable is a TF object containing the numerator and denominator data.
For example, you can create the transfer function by typing
h = tf ([1 0],[1 2 10])
Note the customized display used for TF objects.
You can also specify transfer functions as rational expressions in the Laplace variable by
(1) Defining the variable as a special TF model
s = tf(s);
(2) Entering your transfer function as a rational expression in
For example, once is defined with tf as in (1),
H = s/(s^2 + 2*s +10);
Produces the same transfer function as
h = tf([1 0],[1 2 10]);
Note You need only define the variable as a TF model once. All of the subsequent models you create using rational expressions of are specified as objects, unless you convert the variable to .
2. MIMO (multiple-input/multiple-output) Transfer Function Models
MIMO transfer functions are two-dimensional arrays of elementary SISO transfer functions. There are several ways to specify MIMO transfer function models, including
?Concatenation of SISO transfer function models
?Using tf with cell array arguments
Consider the rational transfer matrix
You can specify by concatenation of its SISO entries. For instance,
h11 = tf([1 1],[1 1]);
h21 = tf([1 2],[1 4 5]);
or, equivalently,
s = tf(s)
h11 = (s-1)/(s+1);
原创力文档

文档评论(0)