0% found this document useful (0 votes)
12 views

Experiment 3

Control Engineering lab experiment

Uploaded by

225037
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
12 views

Experiment 3

Control Engineering lab experiment

Uploaded by

225037
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 7

Control Engineering Lab

Lab Experiment # 03
Implementation of Linear Time Invariant (LTI) Systems in MATLAB

• Mass‐Spring System Model


• Transfer Function
• Linear Time‐Invariant Systems
• Examples of Creating LTI Models
• Simulation of Linear systems to different inputs
Objective:
This experiment has following two objectives:

• Continued with the learning of Mathematical Modeling from previous experiment, we


now start focusing the linear systems. We will learn commands in MATLAB that would
be used to represent such systems in terms of transfer function or pole-zero-gain
representations.
• We will also learn how to make preliminary analysis of such systems using plots of poles
and zeros locations as well as time response due to impulse, step and arbitrary inputs.

Apparatus/Software:
Following equipment/software is required:
• MATLAB
Theory:

• Mass-Spring System Model:

The spring force is assumed to be either linear or can be approximated by a linear function
Fs(x)=Kx, B is the friction coefficient, x(t) is the displacement and Fa(t) is the applied force:

Fig. 3.1: Mass spring system


The differential equation for the above Mass-Spring system shown in Figure 3.1, can be derived
as follows:

Department of Mechanical Engineering, Air University A&AC Kamra 1


Control Engineering Lab

Transfer Function:
Applying the Laplace transformation while assuming the initial conditions are zeros, we
get
Then the transfer function representation of the system is given.

Linear Time-Invariant Systems in MATLAB:


Control System Toolbox in MATLAB offers extensive tools to manipulate and analyze
linear Time-invariant (LTI) models. It supports both continuous- and discrete-time systems.
Systems can be single-input/single-output (SISO) or multiple-input/multiple-output (MIMO). You
can specify LTI models as:
Transfer functions (TF), for example,

Lab Tasks

Q1: Consider the transfer function

Apply MATLAB command to plot the pole zero map of the above system. And also Execute the
command to generate the results.

Q2:
a) Apply MATLAB command to obtain the model and Execute the commands to generate
the impulse response for the following

Department of Mechanical Engineering, Air University A&AC Kamra 2


Control Engineering Lab

b) Apply MATLAB command to model and Execute the commands to generate the step
response for the following system,

Q3: A system has a transfer function


2 𝑠2+ 5 s + 1
G(s)= ---------------
𝑠2+ 2 s + 3

Apply MATLAB command to obtain the model and Execute the commands to plot the step
response and impulse response. Also Apply & Execute MATLAB command to plot pole zero
map of above system

Results:
Q1:

Department of Mechanical Engineering, Air University A&AC Kamra 3


Control Engineering Lab

Q2:

Department of Mechanical Engineering, Air University A&AC Kamra 4


Control Engineering Lab

Department of Mechanical Engineering, Air University A&AC Kamra 5


Control Engineering Lab

Q3:

Department of Mechanical Engineering, Air University A&AC Kamra 6


Control Engineering Lab

Department of Mechanical Engineering, Air University A&AC Kamra 7

You might also like