Introduction to Matlab

Only available on StudyMode
  • Download(s) : 82
  • Published : December 2, 2012
Open Document
Text Preview
Lab 1
Introduction to MATLAB and Simulink
Objectives:
1. The student should be able to understand the used of Matlab simulation package for analysis. 2. The student should be able to understand the used of simulink tool to analyse a given system.

Part A: Matlab programming 1) Use MATLAB to generate the transfer function

G(s) =

5(s+15)(s+26)(s+72) s(s+55)(s+47)(s+56)(s+89)

in the following ways: The ratio of factors (i) (ii) The ratio of polynomials (b) Test the transfer function for (i) Stability Step response. Peak time? Settling time? % Overshoot? (ii) (iii) Steady state error for a unit step input

1

Part B: Simulink tool. 1) Find the transfer function T(s) = C(s)/R(s) for the system shown in Figure 1. Given that G1(s) = 1/(s+7), G2(s) = 1/(s2+2s+3), G3(s) = 1/(s+4), G4 = 1/s G5(s) = 5/(s+7), G6(s) = 1/(s2 + 5s+10), G7=3/(s+2) and G8 = 1/(s+6). {Hint : Use the connect and blkbuild commands in MATLAB's Control System Toolbox} (a) Analyse the system for stability, steady-state error and time response to a unit step input, a unit ramp input and a hyperbolic input. (b) Connect the blocks in SIMULINK and verify for the time response obtained in (a) .

G8(s)

G6(s) R(s) G1(s) + + + G3(s) + G7(s) + G2(s) + + G4(s) +

C(s)

G5(s)

Figure 1
2

tracking img