Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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);
image text in transcribed

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Logistics Lifeline Supply Chain Strategies

Authors: Ehsan Sheroy

1st Edition

7419377502, 978-7419377503

More Books

Students also viewed these Databases questions