Question: Define transfer function using matlab command and plotting time response of the system which subjected to unit step function for open loop transfer function of

Define transfer function using matlab command and plotting time response of the system which
subjected to unit step function for open loop transfer function of 2 systems in series and plotting the
time response of the system for closed loop transfer function by combining both systems in series
together.
% Defining Transfer Functions
Gn=[32.4];
Gd=[123];
Gsys =tf(Gn,Gd);%G(s)
C=[5];
Csys =tf(C,1);%C(s)
Hn=0.25;
Hd=[125];
Hsys =tf(Hn,Hd);%H(s)
sysCGtf = series(Csys, Gsys);
sysCLTF = feedback(sysCGtf, Hsys);
% Closed Loop Transfer Function (CLTF) Should Look like this:
%C(s)**G(S)+G(S)
%
%1+[C(s)**G(S)+G(s)]**H(s)
B= isstable(sysCLTF); % Stability Check
% Plotting CLTF as a whole:
figure(1)
hold on
plot(step(sysCLTF))
grid on
ylabel('Amplitude')
xlabel('Time')
hold off
% Plotting G(s)
figure(2)
subplot(2,1,1)
step(Gsys)
grid on
subplot(2,1,2)
step(Hsys)
grid on
% Plotting H(s)
figure(3)
a=sim('model.slx');
b = a.y.data;
c= a.t.data;
plot(c, b);
 Define transfer function using matlab command and plotting time response of

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!