You are on page 1of 3

Creating a Transfer Function using Simulink in

MATLAB
John Carlo S. Tigue
Department of Electrical and Electronics Engineering
University of San Carlos
Nasipit,Talamban, Cebu City
tiguejohncarlo@gmail.com
Abstract This paper shows a background and the use of
SISOTOOL in MATLAB in finding and plotting the
Laplace transform given the result of the simulation of a
transfer function in SISOTOOL. In using SISOTOOL, one
can understand the basic capabilities of MATLAB.
IndexTermsSimulink,Matlab,SISOTOOL
I. INTRODUCTION
This document provides an overview on the process of
constructing a simulation and model-based design by the use
of the program, MATLAB.
ATransferFunctionistheratiooftheoutputofasystem
totheinputofasystem,intheLaplacedomainconsideringits
initial conditions and equilibrium point to be zero. This
assumptionisrelaxedforsystemsobservingtransience.Ifwe
haveaninputfunctionofX(s),andanoutputfunctionY(s),
wedefinethetransferfunctionH(s)tobe[2]:

Frances Irah D. Sayson


Department of Electrical and Electronics Engineering
University of San Carlos
Nasipit,Talamban, Cebu City
cafraidasa11@gmail.com
this task is Simulink, but this toolbox helps us understand the
basic capabilities of Matlab.
SISOTOOL provides the option of inserting and adjusting
the poles and zeros either graphically or numerically; each
mode having its own advantages. Inserting them numerically
is advantageous when precise values are wanted (for example
a pole at the origin for a controller with Integral term). By
inserting them (and also moving them) graphically the user
can perform adjustments very quickly to see which controller
configuration will be able to let the root locus approximately
pass through the desired poles.
II. METHODOLOGY
A. Compensator Design Problem
The teacher asked tocreate a design problem that will
enhance the input and output response and graphical
representation of the given transfer function (s/s 3+1) using
SISOTOOLinMATLAB.
B. FamiliarizingtheControlSystemDesigner

Thetransferfunctiondescribesthebehavioroftheoutput
asafunctionoftheinputfrequency.Thisisusefulparticularly
in a linear timeinvariant system, where given some input
X(f),wecanfindtheoutputY(f)directlybyusingtherelation
Y(f)=X(f)H(f),whereH(f)isthetransferfunction.

Thestandardfeedbackwasusedwiththecontrollerinthe
forwardpath.ThisstructureissocalledthedefaultControl
System Designer architecture. To open the Control System
Designer with the specified plant, the command
controlSystemDesigner(tf(1,[1,1]))was created.

Matrix laboratory or simply MATLAB is a program that is


made for data visualization and numerical computation and is
used for analysis and design. The basic functions of MATLAB
had been extended into different application areas because of
the different toolboxes that it has.
Once you can load and easily manipulate data in
MATLAB, you now possibly want to display the results and
may be in any form such as plots or graphs. Simulation and
model-based design had been made easy using MATLAB.
The single input single output design tool is part of
Matlabs Control Systems Toolbox that enables us to analyse
simple SISO system interconnections. The optimal tool for

Figure 1 Control System Designer

On the Control System tab, the compensator turning


method was selected and created the response plots for
analysing thecontroller performance. One could also store,
compare,andexportdifferentcontrolsystemdesigns.

Toviewthecompensator,rightclickintheBodeEditoror
RootLocusEditorplotarea,andselectEditCompensator.
III. RESULTS AND DISCUSSIONS

Forfigure1,thecompensatorwasgraphicallytunesusing
theRootLocusEditorandopenloopBodeEditor,and
validatethedesignusingtheclosedloopStepResponse.By
default,ControlSystemDesignerdisplaystheseresponses
whenitopens.Theadditionalresponseplotswereaddedby
clickingNewPlot.
C. AddingDesignRequirements
Thetimedomaindesignrequirementswereaddedtothe
StepResponseplot.Rightclicktheplotarea,andselect
DesignRequirements>New.IntheDesignrequirmeent
typedropdownlist,selectStep response bound.The
timedomaindesignrequirementswereentered.

OutputSimulink

D.FamiliarizingTuneCompensator
Tomeetthezerosteadystateerrordesignrequirement,
anintegratortothecompensatorwasadded.Rightclickthe
RootLocusEditorplotarea,andselectAddPole/Zero>
Integrator
Tocreateadesirableshapefortherootlocusplot,areal
zeronear2wasadded.Rightclicktherootlocusplotaream
andselectAddPole/Zero>RealZero.Intherootlocusplot,
leftclicktherealaxisnear2.
Tocreateafasterresponsebyincreasingthecompensator
gain,intheBodeEditor,themagnituderesponseupwardwas
dragged.Tosatisfythecrossoverfrequencyrequirement,the
responsebelowtheexclusionregionintheBodeeditorwas
maintained.

UnCompensatedSystemSISOTOOL

unCompensatedSystemSISOTOOL

Figure2BodeandRootLocusEditor

CompensatedSystemSISOTOOL

ACKNOWLEDGMENT
The authors would like to thank God for helping them in
enlightening their minds in making this project. They would
also like to thank their classmates for guiding them and giving
them advices in how to make this project. Thank you also to
their parents for supporting them and helping in making this
project successful. Without them, this project would not be
successful.
CONCLUSION
SISOTOOL simplifies the control design process, in
several ways:
1. The control design specifications on time, frequency,
and pole/zero response plots can be defined graphically.
2. Compensator parameters can be tuned and validated,
via: Interactively moving poles and zeros in the design plots
(Bode and root locus) Automated design algorithms, such as
Ziegler Nichols, IMC, and LQG Optimization techniques
using Simulink Design Optimization tools.
3. The closed-loop and open-loop responses and plots are
dynamically updated, as the design parameters are adjusted, to
provide feedback to the designer
REFERENCES
[1]
[2]

Gilat, Amos (2004). MATLAB: An Introduction with Applications 2nd


Edition. John Wiley & Sons. ISBN 978-0-471-69420-5.
Barnett, R.A.; Ziegler, M.R.; Byleen, K.E. (2008), College Mathematics
for Business, Economics, Life Sciences and the Social Sciences (11th ed.),
Upper Saddle River, N.J.: Pearson, ISBN 0-13-157225-3

You might also like