Docsity
Docsity

Prepare for your exams
Prepare for your exams

Study with the several resources on Docsity


Earn points to download
Earn points to download

Earn points by helping other students or get them with a premium plan


Guidelines and tips
Guidelines and tips

Response of Continuous Systems - Linear Dynamic Systems and Signals - Lab Handout, Exercises of Electronic Circuits Analysis

Main points are: Response of Continuous Systems, Impulse Response, Transfer Function, Step Response, Matlab Function Impulse, State Space Representation, Continuous-Time Linear System, Complete System State, Zeros and Poles

Typology: Exercises

2012/2013

Uploaded on 04/16/2013

agam-sharma
agam-sharma 🇮🇳

5

(2)

143 documents

1 / 3

Toggle sidebar

This page cannot be seen from the preview

Don't miss anything!

bg1
8.7.2 Experiment 2—Response of Continuous Systems
Part 1. Consider a continuous-time linear system represented by its transfer function



(a) Find and plot the impulse response. Use the MATLAB function impulse.
(b) Find and plot the step response using the function step.
(c) Find the zero-state system output response due to an input given by


! #"
. Note that you must use the function lsim and specify input at
every time instant of interest. That can be obtained by t=0:0.1:5 (defines
at
"
"%$'&
"($ )
$'$'$
+*
$ ,
), f=exp(-3*t), and y=lsim(num,den,f,t). Check that
the results obtained agree with analytical results at
-.&
.
(d) Obtain the state space form for this system by using the function tf2ss. Repeat
parts (a), (b), and (c) for the corresponding state space representation. Use the
following MATLAB instructions
[y,x]=impulse(A,B,C,D)
[y,x]=step(A,B,C,D)
[y,x]=lsim(A,B,C,D,f,t)
respectively, with
and
as defined in (c). Compare the results obtained.
Part 2. Consider the continuous-time linear system represented by
/
10

/

*
/
0
+
/
*
0

/

/


324
+
 5"
076
"
98
:)
;
096
"
78
<&
(a) Find the complete system state and output responses by using the MATLAB function
lsim. Compare the simulation results obtained with analytical results. (Hint:
Use [y,x]=lsim(A,B,C,D,f,t,x0) with
= 0:0.1:5.) Note that the initial
condition for the state vector, x0, must be found. This can be obtained by playing
algebra with the state and output equations and setting
-="
.
(b) Find the zeros and poles of this system using the function tf2zp.
(c) Find the system state and output responses due to initial conditions specified in Part
2(a) and the impulse delta function as an input. Since you are unable to specify
the system input in time (the delta function has no time structure), you cannot use
the lsim function. Instead use either the MATLAB function initial (zero-input
response) or the MATLAB program given at the end of this part. The required
response is obtained analytically as follows
>
?
1@
6
>
6
"
98
BA
8
Docsity.com
pf3

Partial preview of the text

Download Response of Continuous Systems - Linear Dynamic Systems and Signals - Lab Handout and more Exercises Electronic Circuits Analysis in PDF only on Docsity!

8.7.2 Experiment 2—Response of Continuous Systems

Part 1. Consider a continuous-time linear system represented by its transfer function



(a) Find and plot the impulse response. Use the MATLAB function impulse. (b) Find and plot the step response using the function step. (c) Find the zero-state system output response due to an input given by 

 ! #"^. Note that you must use the function lsim and specify input at every time instant of interest. That can be obtained by t=0:0.1:5 (defines

"^ at "%$'&^ "($^ )$'$'$^ +* $, ), f=exp(-3*t), and y=lsim(num,den,f,t). Check that the results obtained agree with analytical results at

. (d) Obtain the state space form for this system by using the function tf2ss. Repeat parts (a), (b), and (c) for the corresponding state space representation. Use the following MATLAB instructions [y,x]=impulse(A,B,C,D) [y,x]=step(A,B,C,D) [y,x]=lsim(A,B,C,D,f,t) respectively, with  and

as defined in (c). Compare the results obtained.

Part 2. Consider the continuous-time linear system represented by / (^10)  / *

 324 +   5" ^076 " 98 :) ^096 ;^ " 78 <&

(a) Find the complete system state and output responses by using the MATLAB function lsim. Compare the simulation results obtained with analytical results. ( Hint: Use [y,x]=lsim(A,B,C,D,f,t,x0) with

= 0:0.1:5.) Note that the initial condition for the state vector, x0, must be found. This can be obtained by playing algebra with the state and output equations and setting

. (b) Find the zeros and poles of this system using the function tf2zp. (c) Find the system state and output responses due to initial conditions specified in Part 2(a) and the impulse delta function as an input. Since you are unable to specify the system input in time (the delta function has no time structure), you cannot use the lsim function. Instead use either the MATLAB function initial (zero-input response) or the MATLAB program given at the end of this part. The required response is obtained analytically as follows

?^ 1@ ^6 >^6 " 98 BA^8

where C and D stand for the system and input matrices in the state space. Thus, the new initial condition is given by EFHG%IKJL:D. ( Hint: To find and plot the system state response for the given matrix C and the corresponding initial conditions, the MATLAB program attached can be used.)

t=0:0.1:5; for i=1:1:51; x(:,i)=expm(At(i))(x0+B); end plot(t,x(1,:)) plot(t,x(2,:))

(d) Justify the answer obtained in (c). Solve the same problem analytically using the Laplace transform. Plot results from (c) and compare with these results. Can you draw any conclusion for this “nonstandard” problem from the point of view of the system initial conditions at MONPGRQ? (The standard problem requires that for the impulse response all initial conditions are set to zero.) Part 3. Consider the dynamic system [17] represented in the state space form by

CSN

T

U

VW

G

YXZG%[]\R^_

W

\(XZ

W

a Rb X Z\ G G(XZGGRG([cG [XY[

a G

W

G(XZGGRG([c([c G W

[RXZ`([

a [ G(XZGGRGR^_ G W

d X'[ W

G(X

b Rb db

e gf

h-i DjN

T

U

VkW

G

YX

a \R
G(X'[c\

d a

W

GYX'[]\

d a

W

GYX'[]^R__

e gf

h

l Nnm

G

oG G [ [pG GoG7q i r N sYt]uwv

This is a real mathematical model of an F-8 aircraft [18]. Using MATLAB, determine the following quantities.

(a) The eigenvalues, eigenvectors, and characteristic polynomial. Take p=poly(A) and verify that roots(p) also produces the eigenvalues of matrix C. (b) The state transition matrix at the time instant M = 1. Use the function expm. (c) The unit impulse response and plot output variables. Hint: Use im- pulse(A,B,C,D). (d) The unit step response. Plot the corresponding output variables. (e) Let the initial system condition be EFGJxNny

W

[ [zGYXZ^ [|{'}. Find the system state and output responses due to an input given by ~wFMJ-N€ƒ‚3F+MJ (^) i G „M†„‡[]GGRG. ( Hint: Take t=0:10:1000 and find the corresponding values for ~wFMJ by using the function sin in the form f=sin(t). Then use the lsim function.) (f) Find the system transfer functions. Note that you have one input and two outputs which implies two transfer functions. ( Hint: Use the function ss2tf.)

(g) Find the inverse of the state transition matrix ˆ‰‹ŠŒH I v N<‰IŠkŒ at M = 2.