Você está na página 1de 4

ASSIGNMENT QUESTIONS

1. Find the frequency response of the function : G(s) = (s2 + s + 1)/ (s3 + s2 + 2*s + 3) 2. Calculate the current in each loop of the figure by determinant analysis :

QUESTION 1: Given G(s) = (s2 + s + 1)/ (s3 + s2 + 2*s + 3) The Pole Zero map is as follows which has been plotted using MATLAB:

Where the poles of the transfer function are: 0.1378 + 1.5273i, 0.1378 - 1.5273i and -1.2757 While the zeros are: -0.5000 + 0.8660i and -0.5000 - 0.8660i The MATLAB CODE for the frequency response is as follows:

num = [ 1 1 1]; %numerator of the transfer function den = [1 1 2 3]; %denominator of the transfer function g = tf (num,den); % g(s) = (s^2 + s + 1)/ (s^3 + s^2 + 2*s + 3) bode(g) % plots the frequency response of the transfer function (magnitude / phase vs frequency)

The OUTPUT is as follows:

QUESTION 2 Given,

Applying Kirchoffs Voltage Law in the above figure, we get: 10 5I1 2I1 + 2I2 = 0 5 + 7I2 + 4I2 + 2I2 2I1 = 0 - (1) (for loop 1) -(2) (for loop 2)

Thus, writing in matrix form, we can write the above equation as:

The MATLAB code for solving the above equation is given as follows:
a = [ 7 -2 ; -1 13]; % matrix of coefficients of the currents in each loop b = [-10; -5]; %matrix of the RHS of the linear equation i1 = (det([-10 -2; -5 13]))/ det(a); %current in the first loop i2 = (det([7 -10; -1 -5]))/ det(a); %current in the second loop fprintf('%s %4.2f %s', 'The current in the first loop is ', i1, 'A'); fprintf('\n%s %4.2f %s', 'The current in the second loop is ', i2, 'A');

The output is as follows: The current in the first loop is -1.57 A The current in the second loop is -0.51 A

Você também pode gostar