CSE Assignment
CSE Assignment
Matlab Code:-
num = [1 5];
den = [1 8 16];
H_tf = tf(num, den);
H_zpk = zpk(H_tf);
disp('Transfer Function in ZPK (Factored Form):')
disp(H_zpk)
Q.2 Two systems with transfer functions are mentioned G1(s) =1/(s+2) and G2(s) = s/(s 2+2s+2)
Find the transfer function of the system defined by the two cascaded subsystems using MATLAB.
Matlab Code:-
G1 = tf(1, [1 2]);
G2 = tf([1 0], [1 2 2]);
G_cascaded = series(G1, G2);
disp('Transfer Function of the Cascaded Systems:')
disp(G_cascaded)
Simulation Results:-
Q.3 Two systems with transfer functions are given G1(s) =1/(s+2) and G2(s) = s/(s2+2s+2)
Find the transfer function of the system defined by the two subsystems with parallel connection using
MATLAB.
Matlab Code:-
G1 = tf(1, [1 2]);
G2 = tf([1 0], [1 2 2]);
G_parallel = parallel(G1, G2);
disp('Transfer Function of the System with Parallel Connection: ')
disp(G_parallel)
Find the transfer function of the system with feedback elimination rule using MATLAB.
Matlab Code:-
G1 = tf(1, [1 2]);
G2 = tf([1 0], [1 2 2]);
G_feedback = feedback(G1, G2);
disp('Transfer Function of the System with Feedback Elimination Rule: ')
disp(G_feedback)
G(s)H(s)=K/(s3+6s2+8s)
Matlab Code:-
num = 48;
den = [ 1 6 8 0 ];
G= tf(num, den);
figure;
rlocus(G);
title( ‘Root Locus Plot for G(s)H(s) with K=48’ );