Professional Documents
Culture Documents
MUHAMAD IDHAM BIN KADIR 2009651992 SYED MOHD FARID BIN SYED MOHD FUZI 2009434552 MOHD HAZHAM BIN SOKAYAIL 2009490274 TERRY JOY NICHOLAS 2009674744 COLLINS EMANG LIAN 2009260656
EMD7M5A EM220 FAKULTI KEJURUTERAAN MEKANIKAL UITM LECTURER : MR MOHD SAIFUL BAHARI BIN SHAARI 3 May 2012
Example 1.1 For the circuit of Figure 1.1, the initial conditions are iL (0) = 0, and Vc (0) = 0.5 V.
Block diagram
Output
where y(t)is the output representing the voltage or current of the network, and u(t) is any input, and the initial conditions are y(0) = y'(0) = y''(0) = y'''(0) = 0. a. We will express (1.27) as a set of state equations b. It is known that the solution of the differential equation
subject to the initial conditions y(0) = y'(0) = y''(0) = y'''(0) = 0, has the solution
In our set of state equations, we will select appropriate values for the coefficients a3, a2, a1, and a0 so that the new set of the state equations will represent the differential equation of (1.28) and using Simulink, we will display the waveform of the output . The differential equation of (1.28) is of fourth-order; therefore, we must define four state variables that will be used with the four first-order state equations. We denote the state variables as x1, x2, x3 and , x4 and we relate them to the terms of the given differential equation as
We observe that
By inspection the differential equation of (1.27) will be reduced to the differential equation of (1.28) if we let
and thus the differential equation of (1.28) can be expressed in statespace form as
where
Use Simulink
Block diagram
Output
Example 3
Use Simulink
Block diagram
from which
Use Simulink
Block diagram
Command in MATLAB: >> syms s fd=ilaplace(1/(s^2+s+1)) fd = (2*3^(1/2)*sin((3^(1/2)*t)/2))/(3*exp(t/2)) >> t=0.1:0.01:15;... td=2./3.*3.^(1./2).*exp(-1./2.*t).*sin(1./2.*3.^(1./2).*t);... plot(t,td); grid
Output
Example 2.15 Pulse type: Time based Time (t): Use simulation time Amplitude: 0.25 Period (secs): 2 Pulse width (% of period): 50 Phase delay (secs): 0
Block diagram
Output