You are on page 1of 1

Scilab Assignment

November 5, 2011
The following questions are for assignments 7, 8, 9, 10. Please submit the codes and answer les by Saturday, 12th November.

Drawing Nyquist Plot


1. You can dene a variable s as the usual s that you have seen in the laplace transforms by writing s = %s 2. You can ask the user to enter the numerator and the denominator, by writing: num = input(enternumerator : ); den = input(enterdenominator : ); G = num/den;

Write a code to draw the nyquist plot for a function f(s). You may use the following hints:

3. You would need to check if the denominator is equal to zero or not at s=0. Use the horner function. 4. If the denominator at s = 0 is indeed zero, then you need to deal with the positive and the negatively side separately. 5. For the outer circle, you could dene an array theta running from /2 to + /2 and then dene accordingly. Note: Using the built in nyquist function would automatically score a 50% penalty. (Assignment 7)

Feed forward Control

You have to work out the details of the worked out Example 15.5 from page 400 of the textbook. Example 15.5 makes use of Example 4.1 for transfer function. Verify the applicability of this transfer function before you use it. You also have to write a Scilab code that implements the various control strategies studied in this problem. Submit either an xcos le or an sci/sce le. (Assignment 8)

Using a Transfer Function

You have to implement a transfer function in scilab. 1

You might also like