SlideShare a Scribd company logo
1 of 15
Download to read offline
2 | L a b 2
Task 1: Find the Laplace transform of the following functions.
1) g(t)= sin(t)
>> syms t w
>>g=sin(w*t)
g =
sin(t*w)
>> laplace(g)
ans =
w/(s^2 + w^2)
2) g(t) =
>> syms t
>> g=t^2
g =
t^2
>> laplace(g)
ans =
2/s^3
3) g(t) =
>> syms t a
>> g=exp(a*t)
g =
exp(a*t)
>> laplace(g)
3 | L a b 2
ans =
-1/(a - s)
4) g(t) =5t
>> syms t
>> g=5*t*exp(-5*t)
g =
5*t*exp(-5*t)
>> laplace(g)
ans =
5/(s + 5)^2
5) g(t) = 2 sin(2t)
>> syms t
>> g=2*exp(-2*t)*sin(2*t)
g =
2*sin(2*t)*exp(-2*t)
>> laplace(g)
ans =
4/((s + 2)^2 + 4)
Comments: In Matlab we can find Laplace transform of a function using command
laplace(function). It will give us the exact output of the function.
4 | L a b 2
Task 2: Find Inverse Laplace transform following time domain signals.
1) G(s) =
>> syms s
>> g= (5*s+3)/((s+2)*(s+3))
g =
(5*s + 3)/((s + 2)*(s + 3))
>> ilaplace(g)
ans =
12*exp(-3*t) - 7*exp(-2*t)
2) G(s) =
>> syms s
>> g=1/(s*(s+2))
g =
1/(s*(s + 2))
>> ilaplace(g)
ans =
1/2 - exp(-2*t)/2
3) G(s) =
>> syms s
>> g=100*(s+2)/((s+2)*(s+3))
g =
(100*s + 200)/((s + 2)*(s + 3))
>> ilaplace(g)
5 | L a b 2
ans =
100*exp(-3*t)
4) G(s) =
>> syms s
>> g=(s+3)/(s^2+5*s+2)
g =
(s + 3)/(s^2 + 5*s + 2)
>> ilaplace(g)
ans =
exp(-(5*t)/2)*(cosh((17^(1/2)*t)/2) + (17^(1/2)*sinh((17^(1/2)*t)/2))/17)
5) G(s) =
>> syms s
>> g=(4*s^2+16*s+12)/(s^3+44*s^2+48*s+12)
g =
(4*s^2 + 16*s + 12)/(s^3 + 44*s^2 + 48*s + 12)
>> ilaplace(g)
ans =
12*sum(exp(r3*t)/(3*r3^2 + 88*r3 + 48), r3 in RootOf(s3^3 + 44*s3^2 + 48*s3 + 12, s3)) +
16*sum((r3*exp(r3*t))/(3*r3^2 + 88*r3 + 48), r3 in RootOf(s3^3 + 44*s3^2 + 48*s3 + 12,
s3)) + 4*sum((r3^2*exp(r3*t))/(3*r3^2 + 88*r3 + 48), r3 in RootOf(s3^3 + 44*s3^2 + 48*s3
+ 12, s3))
Comments: In Matlab we can find Inverse Laplace transform of a function using
command ilaplace(function). It will give us the exact output of the function.
6 | L a b 2
Task 3: Find partial fraction with residue command
1)
>> n=[1 3 1]
n =
1 3 1
>> d=[1 3 3 1]
d =
1 3 3 1
>> [R P k]=residue(n,d)
R =
1.0000
1.0000
-1.0000
P =
-1.0000
-1.0000
-1.0000
k =
[]
=
7 | L a b 2
2)
>> n=[23 28 35 3]
n =
23 28 35 3
>> d=[1 16 8 2]
d =
1 16 8 2
>> [R P k]=residue(n,d)
R =
1.0e+02 * -3.4158
0.0079 + 0.0065i
0.0079 - 0.0065i
P =
-15.4919
-0.2540 + 0.2541i
-0.2540 - 0.2541i
k =
23
=
8 | L a b 2
>> n=[4 16 12]
n =
4 16 12
>> d=[1 12 44 0 48]
d =
1 12 44 0 48
>> [R P k]=residue(n,d)
R =
-0.1425 - 0.3256i
-0.1425 + 0.3256i
0.1425 - 0.1459i
0.1425 + 0.1459i
P =
-6.1372 + 2.9440i
-6.1372 - 2.9440i
0.1372 + 1.0085i
0.1372 - 1.0085i
k =
[]
Comments: In Matlab we can find partial fraction using residue(x,y) command. It will give
us the exact output of the function.
9 | L a b 2
>> n=3
n =
3
>> d=[1 4 3]
d =
1 4 3
>> sys=tf(n,d)
sys =
3
-------------
s^2 + 4 s + 3
Continuous-time transfer function.
>> step(sys)
10 | L a b 2
a) When Vin = 1V
b) When Vin = 3V
0 1 2 3 4 5 6 7 8
0
0.1
0.2
0.3
0.4
0.5
0.6
0.7
0.8
0.9
1
Step Response
Time (seconds)
Amplitude
0 1 2 3 4 5 6 7 8
0
0.5
1
1.5
2
2.5
3
Step Response
Time (seconds)
Amplitude
11 | L a b 2
c) When Vin = 5V
d) When Vin = 10V
0 1 2 3 4 5 6 7 8
0
0.5
1
1.5
2
2.5
3
3.5
4
4.5
5
Step Response
Time (seconds)
Amplitude
0 1 2 3 4 5 6 7 8
0
1
2
3
4
5
6
7
8
9
10
Step Response
Time (seconds)
Amplitude
12 | L a b 2
>> n=1
n =
1
>> d=[1.2 3 5]
d =
1.2000 3.0000 5.0000
>> sys=tf(n,d)
sys =
1
-----------------
1.2 s^2 + 3 s + 5
Continuous-time transfer function.
>> step(sys); grid
13 | L a b 2
Using SIMULINK:
0 0.5 1 1.5 2 2.5 3 3.5 4
0
0.05
0.1
0.15
0.2
0.25
Step Response
Time (seconds)
Amplitude
0 1 2 3 4 5 6 7 8 9 10
0
0.05
0.1
0.15
0.2
0.25
14 | L a b 2
(1)
Similarly
0 =
0 =
0 = (2)
Similarly
0 =
0 = (3)
Now using Matlab
>> syms I V z s
>> I=[i1; i2; i3];
>> V=[v;0;0];
>> z=[2+2*s -1-2*s -1; -1-2*s 7+5*s -1-2*s; -1 -3-3*s 3+3.2*s]
15 | L a b 2
z =
[ 2*s + 2, - 2*s - 1, -1]
[ - 2*s - 1, 5*s + 7, - 2*s - 1]
[ -1, - 3*s - 3, (16*s)/5 + 3]
>> I=inv(z)
I=
[ (25*s^2 + 71*s + 45)/(18*s^3 + 105*s^2 + 149*s + 55), (32*s^2 + 61*s + 30)/(2*(18*s^3
+ 105*s^2 + 149*s + 55)), (5*(4*s^2 + 9*s + 8))/(2*(18*s^3 + 105*s^2 + 149*s + 55))]
[ (2*(8*s^2 + 14*s + 5))/(18*s^3 + 105*s^2 + 149*s + 55), (32*s^2 + 62*s + 25)/(2*(18*s^3
+ 105*s^2 + 149*s + 55)), (5*(4*s^2 + 8*s + 3))/(2*(18*s^3 + 105*s^2 + 149*s + 55))]
[ (5*(3*s^2 + 7*s + 5))/(18*s^3 + 105*s^2 + 149*s + 55), (5*(6*s^2 + 14*s + 7))/(2*(18*s^3
+ 105*s^2 + 149*s + 55)), (5*(6*s^2 + 20*s + 13))/(2*(18*s^3 + 105*s^2 + 149*s + 55))]
>> I*V
I =
[ (V*(25*s^2 + 71*s + 45))/(18*s^3 + 105*s^2 + 149*s + 55), (V*(32*s^2 + 61*s +
30))/(2*(18*s^3 + 105*s^2 + 149*s + 55)), (5*V*(4*s^2 + 9*s + 8))/(2*(18*s^3 + 105*s^2 +
149*s + 55))]
[ (2*V*(8*s^2 + 14*s + 5))/(18*s^3 + 105*s^2 + 149*s + 55), (V*(32*s^2 + 62*s +
25))/(2*(18*s^3 + 105*s^2 + 149*s + 55)), (5*V*(4*s^2 + 8*s + 3))/(2*(18*s^3 + 105*s^2 +
149*s + 55))]
[ (5*V*(3*s^2 + 7*s + 5))/(18*s^3 + 105*s^2 + 149*s + 55), (5*V*(6*s^2 + 14*s +
7))/(2*(18*s^3 + 105*s^2 + 149*s + 55)), (5*V*(6*s^2 + 20*s + 13))/(2*(18*s^3 + 105*s^2 +
149*s + 55))]
>> I(3) //value of
I=
(5*V*(3*s^2 + 7*s + 5))/(18*s^3 + 105*s^2 + 149*s + 55)
Vout=I*4
Vout=
(20*V*(3*s^2 + 7*s + 5))/(18*s^3 + 105*s^2 + 149*s + 55)
16 | L a b 2
>> TFtn=Vout/V
TFtn=
(20*(3*s^2 + 7*s + 5))/(18*s^3 + 105*s^2 + 149*s + 55)
>>VL= (I(1)-I(2))*2
VL=
(2*(25*s^2 + 71*s + 45))/(18*s^3 + 105*s^2 + 149*s + 55) - (4*(8*s^2 + 14*s + 5))/(18*s^3
+ 105*s^2 + 149*s + 55)
Conclusion:
In this lab I observed the response of different physical systems using Matlab in frequency
domain. The motion or working of these systems can be modeled mathematically and their
behavior can be observed using software like Matlab. This feature helps us in designing of a
system. An important tool used in control system is Laplace transform which helps us in
development of system mathematical model and its analysis using transfer function. After
finding transfer function, we can simulate it in Matlab that give us output response of that
system for a given input.

More Related Content

What's hot

Lecture 14 15-time_domain_analysis_of_2nd_order_systems
Lecture 14 15-time_domain_analysis_of_2nd_order_systemsLecture 14 15-time_domain_analysis_of_2nd_order_systems
Lecture 14 15-time_domain_analysis_of_2nd_order_systemsSyed Ali Raza Rizvi
 
Control system lectures
Control system lectures Control system lectures
Control system lectures Naqqash Sajid
 
Analogous system 4
Analogous system 4Analogous system 4
Analogous system 4Syed Saeed
 
Signal flow graph Mason’s Gain Formula
Signal flow graph Mason’s Gain Formula Signal flow graph Mason’s Gain Formula
Signal flow graph Mason’s Gain Formula vishalgohel12195
 
modeling of MECHANICAL system (translational), Basic Elements Modeling-Spring...
modeling of MECHANICAL system (translational), Basic Elements Modeling-Spring...modeling of MECHANICAL system (translational), Basic Elements Modeling-Spring...
modeling of MECHANICAL system (translational), Basic Elements Modeling-Spring...Waqas Afzal
 
Analog signal Conditioning
Analog signal ConditioningAnalog signal Conditioning
Analog signal ConditioningGhansyam Rathod
 
02 3 prime-movers
02 3 prime-movers02 3 prime-movers
02 3 prime-moversSatya Verma
 
Pneumatic valves
Pneumatic valvesPneumatic valves
Pneumatic valvesWaqar Aziz
 
3. Concept of pole and zero.pptx
3. Concept of pole and zero.pptx3. Concept of pole and zero.pptx
3. Concept of pole and zero.pptxAMSuryawanshi
 
Basics of Sensors & Transducers
Basics of Sensors & TransducersBasics of Sensors & Transducers
Basics of Sensors & TransducersBurdwan University
 
Frequency Response Analysis
Frequency Response AnalysisFrequency Response Analysis
Frequency Response AnalysisHussain K
 
Kirchoff's Law
Kirchoff's LawKirchoff's Law
Kirchoff's LawWee Ping
 

What's hot (20)

Lecture 14 15-time_domain_analysis_of_2nd_order_systems
Lecture 14 15-time_domain_analysis_of_2nd_order_systemsLecture 14 15-time_domain_analysis_of_2nd_order_systems
Lecture 14 15-time_domain_analysis_of_2nd_order_systems
 
Control system lectures
Control system lectures Control system lectures
Control system lectures
 
Bode plot
Bode plotBode plot
Bode plot
 
Bode Plots
Bode Plots Bode Plots
Bode Plots
 
Analogous system 4
Analogous system 4Analogous system 4
Analogous system 4
 
Signal flow graph Mason’s Gain Formula
Signal flow graph Mason’s Gain Formula Signal flow graph Mason’s Gain Formula
Signal flow graph Mason’s Gain Formula
 
modeling of MECHANICAL system (translational), Basic Elements Modeling-Spring...
modeling of MECHANICAL system (translational), Basic Elements Modeling-Spring...modeling of MECHANICAL system (translational), Basic Elements Modeling-Spring...
modeling of MECHANICAL system (translational), Basic Elements Modeling-Spring...
 
Analog signal Conditioning
Analog signal ConditioningAnalog signal Conditioning
Analog signal Conditioning
 
02 3 prime-movers
02 3 prime-movers02 3 prime-movers
02 3 prime-movers
 
Block diagram
Block diagramBlock diagram
Block diagram
 
Laplace transforms
Laplace transformsLaplace transforms
Laplace transforms
 
Pneumatic valves
Pneumatic valvesPneumatic valves
Pneumatic valves
 
Properties of laplace transform
Properties of laplace transformProperties of laplace transform
Properties of laplace transform
 
3. Concept of pole and zero.pptx
3. Concept of pole and zero.pptx3. Concept of pole and zero.pptx
3. Concept of pole and zero.pptx
 
Basics of Sensors & Transducers
Basics of Sensors & TransducersBasics of Sensors & Transducers
Basics of Sensors & Transducers
 
Block diagram
Block diagramBlock diagram
Block diagram
 
D.C. Circuits
D.C. CircuitsD.C. Circuits
D.C. Circuits
 
Frequency Response Analysis
Frequency Response AnalysisFrequency Response Analysis
Frequency Response Analysis
 
Kirchoff's Law
Kirchoff's LawKirchoff's Law
Kirchoff's Law
 
Block diagram reduction techniques
Block diagram reduction techniquesBlock diagram reduction techniques
Block diagram reduction techniques
 

Similar to Mathematical Modelling of Electrical/Mechanical modellinng in MATLAB

Analysis of Electro-Mechanical System
Analysis of Electro-Mechanical SystemAnalysis of Electro-Mechanical System
Analysis of Electro-Mechanical SystemCOMSATS Abbottabad
 
Mathematical Modelling of Electro-Mechanical System in Matlab
Mathematical Modelling of Electro-Mechanical System in MatlabMathematical Modelling of Electro-Mechanical System in Matlab
Mathematical Modelling of Electro-Mechanical System in MatlabCOMSATS Abbottabad
 
System dynamics 3rd edition palm solutions manual
System dynamics 3rd edition palm solutions manualSystem dynamics 3rd edition palm solutions manual
System dynamics 3rd edition palm solutions manualSextonMales
 
Numerical Algorithm for a few Special Functions
Numerical Algorithm for a few Special FunctionsNumerical Algorithm for a few Special Functions
Numerical Algorithm for a few Special FunctionsAmos Tsai
 
Solutions_Manual_to_accompany_Applied_Nu.pdf
Solutions_Manual_to_accompany_Applied_Nu.pdfSolutions_Manual_to_accompany_Applied_Nu.pdf
Solutions_Manual_to_accompany_Applied_Nu.pdfWaleedHussain30
 
Ernest f. haeussler, richard s. paul y richard j. wood. matemáticas para admi...
Ernest f. haeussler, richard s. paul y richard j. wood. matemáticas para admi...Ernest f. haeussler, richard s. paul y richard j. wood. matemáticas para admi...
Ernest f. haeussler, richard s. paul y richard j. wood. matemáticas para admi...Jhonatan Minchán
 
Sol mat haeussler_by_priale
Sol mat haeussler_by_prialeSol mat haeussler_by_priale
Sol mat haeussler_by_prialeJeff Chasi
 
31350052 introductory-mathematical-analysis-textbook-solution-manual
31350052 introductory-mathematical-analysis-textbook-solution-manual31350052 introductory-mathematical-analysis-textbook-solution-manual
31350052 introductory-mathematical-analysis-textbook-solution-manualMahrukh Khalid
 
Solucionario de matemáticas para administación y economia
Solucionario de matemáticas para administación y economiaSolucionario de matemáticas para administación y economia
Solucionario de matemáticas para administación y economiaLuis Perez Anampa
 
Csm chapters12
Csm chapters12Csm chapters12
Csm chapters12Pamela Paz
 
Laplace transforms
Laplace transformsLaplace transforms
Laplace transformsKarnav Rana
 
Ejercicio de fasores
Ejercicio de fasoresEjercicio de fasores
Ejercicio de fasoresdpancheins
 
Capitulo 2 corripio
Capitulo 2 corripioCapitulo 2 corripio
Capitulo 2 corripioomardavid01
 
Laplace transforms and problems
Laplace transforms and problemsLaplace transforms and problems
Laplace transforms and problemsVishnu V
 
5indiceslogarithms 120909011915-phpapp02
5indiceslogarithms 120909011915-phpapp025indiceslogarithms 120909011915-phpapp02
5indiceslogarithms 120909011915-phpapp02Sofia Mahmood
 

Similar to Mathematical Modelling of Electrical/Mechanical modellinng in MATLAB (20)

Analysis of Electro-Mechanical System
Analysis of Electro-Mechanical SystemAnalysis of Electro-Mechanical System
Analysis of Electro-Mechanical System
 
Mathematical Modelling of Electro-Mechanical System in Matlab
Mathematical Modelling of Electro-Mechanical System in MatlabMathematical Modelling of Electro-Mechanical System in Matlab
Mathematical Modelling of Electro-Mechanical System in Matlab
 
System dynamics 3rd edition palm solutions manual
System dynamics 3rd edition palm solutions manualSystem dynamics 3rd edition palm solutions manual
System dynamics 3rd edition palm solutions manual
 
Numerical Algorithm for a few Special Functions
Numerical Algorithm for a few Special FunctionsNumerical Algorithm for a few Special Functions
Numerical Algorithm for a few Special Functions
 
Solutions_Manual_to_accompany_Applied_Nu.pdf
Solutions_Manual_to_accompany_Applied_Nu.pdfSolutions_Manual_to_accompany_Applied_Nu.pdf
Solutions_Manual_to_accompany_Applied_Nu.pdf
 
Ernest f. haeussler, richard s. paul y richard j. wood. matemáticas para admi...
Ernest f. haeussler, richard s. paul y richard j. wood. matemáticas para admi...Ernest f. haeussler, richard s. paul y richard j. wood. matemáticas para admi...
Ernest f. haeussler, richard s. paul y richard j. wood. matemáticas para admi...
 
Sol mat haeussler_by_priale
Sol mat haeussler_by_prialeSol mat haeussler_by_priale
Sol mat haeussler_by_priale
 
31350052 introductory-mathematical-analysis-textbook-solution-manual
31350052 introductory-mathematical-analysis-textbook-solution-manual31350052 introductory-mathematical-analysis-textbook-solution-manual
31350052 introductory-mathematical-analysis-textbook-solution-manual
 
Solucionario de matemáticas para administación y economia
Solucionario de matemáticas para administación y economiaSolucionario de matemáticas para administación y economia
Solucionario de matemáticas para administación y economia
 
HIDRAULICA DE CANALES
HIDRAULICA DE CANALESHIDRAULICA DE CANALES
HIDRAULICA DE CANALES
 
Csm chapters12
Csm chapters12Csm chapters12
Csm chapters12
 
Laplace transforms
Laplace transformsLaplace transforms
Laplace transforms
 
Laplace table
Laplace tableLaplace table
Laplace table
 
Laplace table
Laplace tableLaplace table
Laplace table
 
LaplaceTransformIIT.pdf
LaplaceTransformIIT.pdfLaplaceTransformIIT.pdf
LaplaceTransformIIT.pdf
 
Ejercicio de fasores
Ejercicio de fasoresEjercicio de fasores
Ejercicio de fasores
 
Capitulo 2 corripio
Capitulo 2 corripioCapitulo 2 corripio
Capitulo 2 corripio
 
corripio
corripio corripio
corripio
 
Laplace transforms and problems
Laplace transforms and problemsLaplace transforms and problems
Laplace transforms and problems
 
5indiceslogarithms 120909011915-phpapp02
5indiceslogarithms 120909011915-phpapp025indiceslogarithms 120909011915-phpapp02
5indiceslogarithms 120909011915-phpapp02
 

More from COMSATS Abbottabad

coding and burning program in FPGA
coding and burning program in FPGAcoding and burning program in FPGA
coding and burning program in FPGACOMSATS Abbottabad
 
Fabrication process of Integrated Circuit (IC's)
Fabrication process of Integrated Circuit (IC's)Fabrication process of Integrated Circuit (IC's)
Fabrication process of Integrated Circuit (IC's)COMSATS Abbottabad
 
IMPLEMENTING ARITHMETIC INSTRUCTIONS IN EMU 8086
IMPLEMENTING ARITHMETIC INSTRUCTIONS IN EMU 8086IMPLEMENTING ARITHMETIC INSTRUCTIONS IN EMU 8086
IMPLEMENTING ARITHMETIC INSTRUCTIONS IN EMU 8086COMSATS Abbottabad
 
implementation of data instrucions in emu8086
implementation of data instrucions in emu8086implementation of data instrucions in emu8086
implementation of data instrucions in emu8086COMSATS Abbottabad
 
Addition, subtraction and multiplication in assembly language
Addition, subtraction and multiplication in assembly languageAddition, subtraction and multiplication in assembly language
Addition, subtraction and multiplication in assembly languageCOMSATS Abbottabad
 
Aurduino coding for transformer interfacing
Aurduino coding for transformer interfacingAurduino coding for transformer interfacing
Aurduino coding for transformer interfacingCOMSATS Abbottabad
 
Transformer Interfacing with Laptop
Transformer Interfacing with LaptopTransformer Interfacing with Laptop
Transformer Interfacing with LaptopCOMSATS Abbottabad
 
Temperature control Switch and Display By Led
Temperature control Switch and Display By LedTemperature control Switch and Display By Led
Temperature control Switch and Display By LedCOMSATS Abbottabad
 

More from COMSATS Abbottabad (20)

Kalman filter
Kalman filterKalman filter
Kalman filter
 
Enterpreneurship
EnterpreneurshipEnterpreneurship
Enterpreneurship
 
Sine wave inverter
Sine wave inverterSine wave inverter
Sine wave inverter
 
Light Tracking Solar Panel
Light Tracking Solar PanelLight Tracking Solar Panel
Light Tracking Solar Panel
 
coding and burning program in FPGA
coding and burning program in FPGAcoding and burning program in FPGA
coding and burning program in FPGA
 
8 bit full adder
8 bit full adder8 bit full adder
8 bit full adder
 
Fabrication process of Integrated Circuit (IC's)
Fabrication process of Integrated Circuit (IC's)Fabrication process of Integrated Circuit (IC's)
Fabrication process of Integrated Circuit (IC's)
 
IMPLEMENTING ARITHMETIC INSTRUCTIONS IN EMU 8086
IMPLEMENTING ARITHMETIC INSTRUCTIONS IN EMU 8086IMPLEMENTING ARITHMETIC INSTRUCTIONS IN EMU 8086
IMPLEMENTING ARITHMETIC INSTRUCTIONS IN EMU 8086
 
implementation of data instrucions in emu8086
implementation of data instrucions in emu8086implementation of data instrucions in emu8086
implementation of data instrucions in emu8086
 
Addition, subtraction and multiplication in assembly language
Addition, subtraction and multiplication in assembly languageAddition, subtraction and multiplication in assembly language
Addition, subtraction and multiplication in assembly language
 
Introduction to MATLAB
Introduction to MATLAB Introduction to MATLAB
Introduction to MATLAB
 
Encoder + decoder
Encoder + decoderEncoder + decoder
Encoder + decoder
 
Principles of Communication
Principles of CommunicationPrinciples of Communication
Principles of Communication
 
Aurduino coding for transformer interfacing
Aurduino coding for transformer interfacingAurduino coding for transformer interfacing
Aurduino coding for transformer interfacing
 
Transformer Interfacing with Laptop
Transformer Interfacing with LaptopTransformer Interfacing with Laptop
Transformer Interfacing with Laptop
 
Temperature control Switch and Display By Led
Temperature control Switch and Display By LedTemperature control Switch and Display By Led
Temperature control Switch and Display By Led
 
stress and strain
stress and strainstress and strain
stress and strain
 
Generating PM wave
Generating PM wave Generating PM wave
Generating PM wave
 
Generating FM wave
Generating FM waveGenerating FM wave
Generating FM wave
 
Filter Designing
Filter DesigningFilter Designing
Filter Designing
 

Recently uploaded

The Most Attractive Pune Call Girls Manchar 8250192130 Will You Miss This Cha...
The Most Attractive Pune Call Girls Manchar 8250192130 Will You Miss This Cha...The Most Attractive Pune Call Girls Manchar 8250192130 Will You Miss This Cha...
The Most Attractive Pune Call Girls Manchar 8250192130 Will You Miss This Cha...ranjana rawat
 
HARDNESS, FRACTURE TOUGHNESS AND STRENGTH OF CERAMICS
HARDNESS, FRACTURE TOUGHNESS AND STRENGTH OF CERAMICSHARDNESS, FRACTURE TOUGHNESS AND STRENGTH OF CERAMICS
HARDNESS, FRACTURE TOUGHNESS AND STRENGTH OF CERAMICSRajkumarAkumalla
 
Call Girls Service Nashik Vaishnavi 7001305949 Independent Escort Service Nashik
Call Girls Service Nashik Vaishnavi 7001305949 Independent Escort Service NashikCall Girls Service Nashik Vaishnavi 7001305949 Independent Escort Service Nashik
Call Girls Service Nashik Vaishnavi 7001305949 Independent Escort Service NashikCall Girls in Nagpur High Profile
 
result management system report for college project
result management system report for college projectresult management system report for college project
result management system report for college projectTonystark477637
 
KubeKraft presentation @CloudNativeHooghly
KubeKraft presentation @CloudNativeHooghlyKubeKraft presentation @CloudNativeHooghly
KubeKraft presentation @CloudNativeHooghlysanyuktamishra911
 
(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...ranjana rawat
 
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICS
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICSAPPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICS
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICSKurinjimalarL3
 
Coefficient of Thermal Expansion and their Importance.pptx
Coefficient of Thermal Expansion and their Importance.pptxCoefficient of Thermal Expansion and their Importance.pptx
Coefficient of Thermal Expansion and their Importance.pptxAsutosh Ranjan
 
MANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLS
MANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLSMANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLS
MANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLSSIVASHANKAR N
 
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...Dr.Costas Sachpazis
 
CCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete Record
CCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete RecordCCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete Record
CCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete RecordAsst.prof M.Gokilavani
 
Call Girls in Nagpur Suman Call 7001035870 Meet With Nagpur Escorts
Call Girls in Nagpur Suman Call 7001035870 Meet With Nagpur EscortsCall Girls in Nagpur Suman Call 7001035870 Meet With Nagpur Escorts
Call Girls in Nagpur Suman Call 7001035870 Meet With Nagpur EscortsCall Girls in Nagpur High Profile
 
Extrusion Processes and Their Limitations
Extrusion Processes and Their LimitationsExtrusion Processes and Their Limitations
Extrusion Processes and Their Limitations120cr0395
 
Top Rated Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...
Top Rated  Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...Top Rated  Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...
Top Rated Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...Call Girls in Nagpur High Profile
 
UNIT - IV - Air Compressors and its Performance
UNIT - IV - Air Compressors and its PerformanceUNIT - IV - Air Compressors and its Performance
UNIT - IV - Air Compressors and its Performancesivaprakash250
 
Microscopic Analysis of Ceramic Materials.pptx
Microscopic Analysis of Ceramic Materials.pptxMicroscopic Analysis of Ceramic Materials.pptx
Microscopic Analysis of Ceramic Materials.pptxpurnimasatapathy1234
 
Processing & Properties of Floor and Wall Tiles.pptx
Processing & Properties of Floor and Wall Tiles.pptxProcessing & Properties of Floor and Wall Tiles.pptx
Processing & Properties of Floor and Wall Tiles.pptxpranjaldaimarysona
 
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur EscortsHigh Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escortsranjana rawat
 
Call Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur Escorts
Call Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur EscortsCall Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur Escorts
Call Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur EscortsCall Girls in Nagpur High Profile
 

Recently uploaded (20)

Roadmap to Membership of RICS - Pathways and Routes
Roadmap to Membership of RICS - Pathways and RoutesRoadmap to Membership of RICS - Pathways and Routes
Roadmap to Membership of RICS - Pathways and Routes
 
The Most Attractive Pune Call Girls Manchar 8250192130 Will You Miss This Cha...
The Most Attractive Pune Call Girls Manchar 8250192130 Will You Miss This Cha...The Most Attractive Pune Call Girls Manchar 8250192130 Will You Miss This Cha...
The Most Attractive Pune Call Girls Manchar 8250192130 Will You Miss This Cha...
 
HARDNESS, FRACTURE TOUGHNESS AND STRENGTH OF CERAMICS
HARDNESS, FRACTURE TOUGHNESS AND STRENGTH OF CERAMICSHARDNESS, FRACTURE TOUGHNESS AND STRENGTH OF CERAMICS
HARDNESS, FRACTURE TOUGHNESS AND STRENGTH OF CERAMICS
 
Call Girls Service Nashik Vaishnavi 7001305949 Independent Escort Service Nashik
Call Girls Service Nashik Vaishnavi 7001305949 Independent Escort Service NashikCall Girls Service Nashik Vaishnavi 7001305949 Independent Escort Service Nashik
Call Girls Service Nashik Vaishnavi 7001305949 Independent Escort Service Nashik
 
result management system report for college project
result management system report for college projectresult management system report for college project
result management system report for college project
 
KubeKraft presentation @CloudNativeHooghly
KubeKraft presentation @CloudNativeHooghlyKubeKraft presentation @CloudNativeHooghly
KubeKraft presentation @CloudNativeHooghly
 
(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(PRIYA) Rajgurunagar Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
 
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICS
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICSAPPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICS
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICS
 
Coefficient of Thermal Expansion and their Importance.pptx
Coefficient of Thermal Expansion and their Importance.pptxCoefficient of Thermal Expansion and their Importance.pptx
Coefficient of Thermal Expansion and their Importance.pptx
 
MANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLS
MANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLSMANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLS
MANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLS
 
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
 
CCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete Record
CCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete RecordCCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete Record
CCS335 _ Neural Networks and Deep Learning Laboratory_Lab Complete Record
 
Call Girls in Nagpur Suman Call 7001035870 Meet With Nagpur Escorts
Call Girls in Nagpur Suman Call 7001035870 Meet With Nagpur EscortsCall Girls in Nagpur Suman Call 7001035870 Meet With Nagpur Escorts
Call Girls in Nagpur Suman Call 7001035870 Meet With Nagpur Escorts
 
Extrusion Processes and Their Limitations
Extrusion Processes and Their LimitationsExtrusion Processes and Their Limitations
Extrusion Processes and Their Limitations
 
Top Rated Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...
Top Rated  Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...Top Rated  Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...
Top Rated Pune Call Girls Budhwar Peth ⟟ 6297143586 ⟟ Call Me For Genuine Se...
 
UNIT - IV - Air Compressors and its Performance
UNIT - IV - Air Compressors and its PerformanceUNIT - IV - Air Compressors and its Performance
UNIT - IV - Air Compressors and its Performance
 
Microscopic Analysis of Ceramic Materials.pptx
Microscopic Analysis of Ceramic Materials.pptxMicroscopic Analysis of Ceramic Materials.pptx
Microscopic Analysis of Ceramic Materials.pptx
 
Processing & Properties of Floor and Wall Tiles.pptx
Processing & Properties of Floor and Wall Tiles.pptxProcessing & Properties of Floor and Wall Tiles.pptx
Processing & Properties of Floor and Wall Tiles.pptx
 
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur EscortsHigh Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escorts
 
Call Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur Escorts
Call Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur EscortsCall Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur Escorts
Call Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur Escorts
 

Mathematical Modelling of Electrical/Mechanical modellinng in MATLAB

  • 1. 2 | L a b 2 Task 1: Find the Laplace transform of the following functions. 1) g(t)= sin(t) >> syms t w >>g=sin(w*t) g = sin(t*w) >> laplace(g) ans = w/(s^2 + w^2) 2) g(t) = >> syms t >> g=t^2 g = t^2 >> laplace(g) ans = 2/s^3 3) g(t) = >> syms t a >> g=exp(a*t) g = exp(a*t) >> laplace(g)
  • 2. 3 | L a b 2 ans = -1/(a - s) 4) g(t) =5t >> syms t >> g=5*t*exp(-5*t) g = 5*t*exp(-5*t) >> laplace(g) ans = 5/(s + 5)^2 5) g(t) = 2 sin(2t) >> syms t >> g=2*exp(-2*t)*sin(2*t) g = 2*sin(2*t)*exp(-2*t) >> laplace(g) ans = 4/((s + 2)^2 + 4) Comments: In Matlab we can find Laplace transform of a function using command laplace(function). It will give us the exact output of the function.
  • 3. 4 | L a b 2 Task 2: Find Inverse Laplace transform following time domain signals. 1) G(s) = >> syms s >> g= (5*s+3)/((s+2)*(s+3)) g = (5*s + 3)/((s + 2)*(s + 3)) >> ilaplace(g) ans = 12*exp(-3*t) - 7*exp(-2*t) 2) G(s) = >> syms s >> g=1/(s*(s+2)) g = 1/(s*(s + 2)) >> ilaplace(g) ans = 1/2 - exp(-2*t)/2 3) G(s) = >> syms s >> g=100*(s+2)/((s+2)*(s+3)) g = (100*s + 200)/((s + 2)*(s + 3)) >> ilaplace(g)
  • 4. 5 | L a b 2 ans = 100*exp(-3*t) 4) G(s) = >> syms s >> g=(s+3)/(s^2+5*s+2) g = (s + 3)/(s^2 + 5*s + 2) >> ilaplace(g) ans = exp(-(5*t)/2)*(cosh((17^(1/2)*t)/2) + (17^(1/2)*sinh((17^(1/2)*t)/2))/17) 5) G(s) = >> syms s >> g=(4*s^2+16*s+12)/(s^3+44*s^2+48*s+12) g = (4*s^2 + 16*s + 12)/(s^3 + 44*s^2 + 48*s + 12) >> ilaplace(g) ans = 12*sum(exp(r3*t)/(3*r3^2 + 88*r3 + 48), r3 in RootOf(s3^3 + 44*s3^2 + 48*s3 + 12, s3)) + 16*sum((r3*exp(r3*t))/(3*r3^2 + 88*r3 + 48), r3 in RootOf(s3^3 + 44*s3^2 + 48*s3 + 12, s3)) + 4*sum((r3^2*exp(r3*t))/(3*r3^2 + 88*r3 + 48), r3 in RootOf(s3^3 + 44*s3^2 + 48*s3 + 12, s3)) Comments: In Matlab we can find Inverse Laplace transform of a function using command ilaplace(function). It will give us the exact output of the function.
  • 5. 6 | L a b 2 Task 3: Find partial fraction with residue command 1) >> n=[1 3 1] n = 1 3 1 >> d=[1 3 3 1] d = 1 3 3 1 >> [R P k]=residue(n,d) R = 1.0000 1.0000 -1.0000 P = -1.0000 -1.0000 -1.0000 k = [] =
  • 6. 7 | L a b 2 2) >> n=[23 28 35 3] n = 23 28 35 3 >> d=[1 16 8 2] d = 1 16 8 2 >> [R P k]=residue(n,d) R = 1.0e+02 * -3.4158 0.0079 + 0.0065i 0.0079 - 0.0065i P = -15.4919 -0.2540 + 0.2541i -0.2540 - 0.2541i k = 23 =
  • 7. 8 | L a b 2 >> n=[4 16 12] n = 4 16 12 >> d=[1 12 44 0 48] d = 1 12 44 0 48 >> [R P k]=residue(n,d) R = -0.1425 - 0.3256i -0.1425 + 0.3256i 0.1425 - 0.1459i 0.1425 + 0.1459i P = -6.1372 + 2.9440i -6.1372 - 2.9440i 0.1372 + 1.0085i 0.1372 - 1.0085i k = [] Comments: In Matlab we can find partial fraction using residue(x,y) command. It will give us the exact output of the function.
  • 8. 9 | L a b 2 >> n=3 n = 3 >> d=[1 4 3] d = 1 4 3 >> sys=tf(n,d) sys = 3 ------------- s^2 + 4 s + 3 Continuous-time transfer function. >> step(sys)
  • 9. 10 | L a b 2 a) When Vin = 1V b) When Vin = 3V 0 1 2 3 4 5 6 7 8 0 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 1 Step Response Time (seconds) Amplitude 0 1 2 3 4 5 6 7 8 0 0.5 1 1.5 2 2.5 3 Step Response Time (seconds) Amplitude
  • 10. 11 | L a b 2 c) When Vin = 5V d) When Vin = 10V 0 1 2 3 4 5 6 7 8 0 0.5 1 1.5 2 2.5 3 3.5 4 4.5 5 Step Response Time (seconds) Amplitude 0 1 2 3 4 5 6 7 8 0 1 2 3 4 5 6 7 8 9 10 Step Response Time (seconds) Amplitude
  • 11. 12 | L a b 2 >> n=1 n = 1 >> d=[1.2 3 5] d = 1.2000 3.0000 5.0000 >> sys=tf(n,d) sys = 1 ----------------- 1.2 s^2 + 3 s + 5 Continuous-time transfer function. >> step(sys); grid
  • 12. 13 | L a b 2 Using SIMULINK: 0 0.5 1 1.5 2 2.5 3 3.5 4 0 0.05 0.1 0.15 0.2 0.25 Step Response Time (seconds) Amplitude 0 1 2 3 4 5 6 7 8 9 10 0 0.05 0.1 0.15 0.2 0.25
  • 13. 14 | L a b 2 (1) Similarly 0 = 0 = 0 = (2) Similarly 0 = 0 = (3) Now using Matlab >> syms I V z s >> I=[i1; i2; i3]; >> V=[v;0;0]; >> z=[2+2*s -1-2*s -1; -1-2*s 7+5*s -1-2*s; -1 -3-3*s 3+3.2*s]
  • 14. 15 | L a b 2 z = [ 2*s + 2, - 2*s - 1, -1] [ - 2*s - 1, 5*s + 7, - 2*s - 1] [ -1, - 3*s - 3, (16*s)/5 + 3] >> I=inv(z) I= [ (25*s^2 + 71*s + 45)/(18*s^3 + 105*s^2 + 149*s + 55), (32*s^2 + 61*s + 30)/(2*(18*s^3 + 105*s^2 + 149*s + 55)), (5*(4*s^2 + 9*s + 8))/(2*(18*s^3 + 105*s^2 + 149*s + 55))] [ (2*(8*s^2 + 14*s + 5))/(18*s^3 + 105*s^2 + 149*s + 55), (32*s^2 + 62*s + 25)/(2*(18*s^3 + 105*s^2 + 149*s + 55)), (5*(4*s^2 + 8*s + 3))/(2*(18*s^3 + 105*s^2 + 149*s + 55))] [ (5*(3*s^2 + 7*s + 5))/(18*s^3 + 105*s^2 + 149*s + 55), (5*(6*s^2 + 14*s + 7))/(2*(18*s^3 + 105*s^2 + 149*s + 55)), (5*(6*s^2 + 20*s + 13))/(2*(18*s^3 + 105*s^2 + 149*s + 55))] >> I*V I = [ (V*(25*s^2 + 71*s + 45))/(18*s^3 + 105*s^2 + 149*s + 55), (V*(32*s^2 + 61*s + 30))/(2*(18*s^3 + 105*s^2 + 149*s + 55)), (5*V*(4*s^2 + 9*s + 8))/(2*(18*s^3 + 105*s^2 + 149*s + 55))] [ (2*V*(8*s^2 + 14*s + 5))/(18*s^3 + 105*s^2 + 149*s + 55), (V*(32*s^2 + 62*s + 25))/(2*(18*s^3 + 105*s^2 + 149*s + 55)), (5*V*(4*s^2 + 8*s + 3))/(2*(18*s^3 + 105*s^2 + 149*s + 55))] [ (5*V*(3*s^2 + 7*s + 5))/(18*s^3 + 105*s^2 + 149*s + 55), (5*V*(6*s^2 + 14*s + 7))/(2*(18*s^3 + 105*s^2 + 149*s + 55)), (5*V*(6*s^2 + 20*s + 13))/(2*(18*s^3 + 105*s^2 + 149*s + 55))] >> I(3) //value of I= (5*V*(3*s^2 + 7*s + 5))/(18*s^3 + 105*s^2 + 149*s + 55) Vout=I*4 Vout= (20*V*(3*s^2 + 7*s + 5))/(18*s^3 + 105*s^2 + 149*s + 55)
  • 15. 16 | L a b 2 >> TFtn=Vout/V TFtn= (20*(3*s^2 + 7*s + 5))/(18*s^3 + 105*s^2 + 149*s + 55) >>VL= (I(1)-I(2))*2 VL= (2*(25*s^2 + 71*s + 45))/(18*s^3 + 105*s^2 + 149*s + 55) - (4*(8*s^2 + 14*s + 5))/(18*s^3 + 105*s^2 + 149*s + 55) Conclusion: In this lab I observed the response of different physical systems using Matlab in frequency domain. The motion or working of these systems can be modeled mathematically and their behavior can be observed using software like Matlab. This feature helps us in designing of a system. An important tool used in control system is Laplace transform which helps us in development of system mathematical model and its analysis using transfer function. After finding transfer function, we can simulate it in Matlab that give us output response of that system for a given input.