Department of Electrical Engineering

Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 5

Department of Electrical Engineering

Faculty of Engineering & Applied Sciences


Riphah International University, Islamabad, Pakistan

Program: B.Sc. Electrical Engineering Semester: VI


Subject EE-345 Linear Control System Date: …………….
Experiment No. 2: Laplace transform/ Inverse Laplace transform Using Matlab

OBJECTIVES: Inquiry Level = 1


 Convert signals in Laplace domain using built-in function
 Conversion from rational form to factored form
 Reconstruct the signals in time domain using Partial fraction

Performance Work Ethics

Description Total Marks Description Total Marks


Marks Obtained Marks Obtained
Taking
Ability to Conduct Responsibility/Sharing
Experiment
5 5
knowledge

Total Marks

Remarks (if any): ………………………………….

Name & Signature of faculty: ………………………………


Control System:
A control system consists of subsystems and processes (or plants) assembled for the purpose of
obtaining a desired output with desired performance, given a specified input. Figure 1 shows a
control system in its simplest form, where the input represents a desired output.

Figure 1: Control System

There are two major configurations of control systems: open loop and closed loop. We can
consider these configurations to be the internal architecture of the total system shown in
Figure 1.

Figure 2: Block diagrams of a control system. a. Open Loop system. b. closed loop system
System Representation
In order to design and analyze a system, we need a mathematical model that describes the
relationship between input and output of a system such as shown in figure 3.

Figure 3: Block Diagram of system

A differential equation (DE) can describe the relationship between the input and output of a
system. The form of the differential equation and its coefficients are a formulation or

description of the system.

Many systems can be approximately described by this equation, which relates the output:
controlled variable, c(t), to the input: reference, r(t), by way of the system parameters, a i and bj.

Problem with DE, and why we need transfer function:


Although the differential equation relates the system to its input and output, it is not a
satisfying representation from a system perspective. Looking at Equation above, a general, nth-
order, linear, time-invariant differential equation, we see that the system parameters, which
are the coefficients, appear throughout the equation. In addition, the output, c(t), and the
input, r(t), also appear throughout the equation.
We would prefer a mathematical representation such as that shown in Figure 3, where the
input, output, and system are distinct and separate parts. We will use Laplace transform to
create such model.
So, by taking Laplace transform on both sides of the Differential Equation

And forming output transform divided by input transform

Notice that Eq. above separates the output, C(s), the input, R(s), and the system, which is the
ratio of polynomials in s on the right. We call this ratio, G(s), the transfer function.

LAB Activity (Converting between Laplace transform and F(t))


Calculating the Laplace F(s) transform of a function f(t) is quite simple in Matlab. First you need
to specify that the variable t and s are symbolic ones. This is done with the command
>> syms t s
Next you define the function f(t). The actual command to calculate the transform is
>> F=laplace(f,t,s)
>>sysm to symbolically define the function.

Time domain Function MATLAB Code Laplace Transform


x(t) = A*e^-2*t

Inverse Laplace Transform with MATLAB:

The command one uses now is ilaplace. One also needs to define the symbols t and s.

Laplace Tranform MATLAB Code Time domain function

You might also like