Professional Documents
Culture Documents
Control Systems
Control Systems
H (s )=
B(s)
A (s)
H (s )=
s
(s+10)(s + 4 s +16)
2
For the example transfer function, MATLAB produces the following state-space
representation
To obtain the transfer function from state-space equations, use the following
MATLAB code
Where num_in must be specified for systems with more than one input. For
example, if there is only one input, then num_in = 1, if there are two inputs then
num_in = 2, etc. For systems with only one input, then the following code is allowed
H (s )=
B(s)
25 s+5
= 3
A (s) s +5 s2 +25 s +5
Example
State space modeling in MATLAB and Simulink
>> tau = 5;
>> A=-1/tau;
>> K=2;
>> B=K/tau;
>> C=1;
>> D=0;
>> sys = ss(A,B,C,D)
>> step(sys)
Convert continuous state space model to discrete state space model using
following command
>> step(sysd)
Exercise 1
Example. Using MATLAB, obtain the transfer function for the control system in the
figure below.
Where,