Вы находитесь на странице: 1из 2

1/2

AMERICAN INTERNATIONAL UNIVERSITY BANGLADESH (AIUB)


EEE 4101: Control Systems Laboratory Experiment # 4 Experiment Name: Performing Mathematical Operations and Analyzing System Performance in MATLAB and SIMULINK Objectives: 1. To understand how to perform mathematical operations like partial fraction expansion, simplification, pole-zero determination, Laplace transform, inverse Laplace transform, state-space model generation etc. 2. To understand how to analyze performance of second order systems. Introduction: MATLAB allows designers to perform complicated mathematical calculations in fast and efficient manner. Partial fraction expansion, simplification, pole-zero determination, laplace transform, inverse laplace transform, state-space model generation are some of the mathematical operation that can be very easily performed in MATLAB. Simulink is a companion software that comes with the MATLAB CAD tool that allows designers to model and simulate systems graphically. It allows designers to model systems using block diagrams. Procedure: Part1: Explore Matlab commands like series, cloop, residue, lapalce, ilpalace, syms, pretty, simplify, tf2ss etc as instructed by the teacher. Part2: Find out how to generate plots, provide feedback connections, supply different input signals, describe transfer functions etc. in the simulink environment. Which environment you prefer to model and simulate your system-Matlab debugger or Simulink? Explain your reasons in the lab report. You can find the necessary blocks from the Simulink Library Browser. Locations for some of them are provided below. Transfer Function Continuous AdderMath Operations ScopeSinks Step, Ramp, Sine WaveSources Generate the step response for a single order system whose transfer function is 1/(s+5). An amplifier (with a gain = 5) is also connected. Now try to generate the same step response after applying a negative feedback. How can this be done? Compare the two responses. Which response reaches the steady state value first? Which one is better and why? Explain in the lab report.

Prepared by Shahriyar Masud Rizvi

2/2

If time permits, complete the following. Part3: Simulate a sample second order system in Matlab. Model and simulate the same system in Simulink. The general form of the second order system is n2 /(s2 + 2s n + n2). Keep n = 1. Vary the value of (0.1, 0.2. 0.4, 0.7, 1, 2 etc.) and observe the step responses in both environments. Lab Report: Answer the questions posed in the in the lab sheet in the report. Attach your MATLAB code, results, block diagrams and relevant plots.

Prepared by Shahriyar Masud Rizvi