Write a MATLAB script using feedback series and parallel com

Write a MATLAB script using feedback, series and parallel commands to obtain P_O (s)/P_j (s) and p_0(s)/T_d (s) when K_c = 12.14.

Solution

MATLAB CODE :-

clear
clc
Kc = tf([12.14],[1]);
K = tf([2],[1]);
G1 = tf([500],[1 100]);
G2 = tf([1],[1 10]);
H1 = 1/2;
H2 = 1;
G3 = tf([1],[1 0]);
% P0(s)/Pi(s) consider Td(s) = 0;

G4 = series(G1,G2);
G5 = feedback(G4,H1);
G6 = series(G5,G3);
display(\'Required Transfer Function Po(s)/Pi(s) = \')
T1 = feedback(G6,H2)

% % P0(s)/Td(s) consider Pi(s) = 0
%
H7 = Kc*K*H2;
H8 = parallel(H7,H1);
H9 = series(G1,H8);
G7 = feedback(G1,H9);
disp(\'Required Transfer Function Po(s)/Td(s) = \')
T2 = series(G7,G3)

OUTPUT : -

Required Transfer Function Po(s)/Pi(s) =

Transfer function:
            500
--------------------------------------------
s^3 + 110 s^2 + 1250 s + 500

Required Transfer Function Po(s)/Td(s) =

Transfer function:
       500 s + 50000
------------------------------------------
s^3 + 200 s^2 + 6.205e006 s

 Write a MATLAB script using feedback, series and parallel commands to obtain P_O (s)/P_j (s) and p_0(s)/T_d (s) when K_c = 12.14. SolutionMATLAB CODE :- clear

Get Help Now

Submit a Take Down Notice

Tutor
Tutor: Dr Jack
Most rated tutor on our site