I believe the MATLAB code is as follows but cannot figure out how to get the equation or simulink. Please help

num = [24]; % numerator

den = [1 2 3]; % denominator

sys = tf(num,den); % continuous time G(s)

sysd1 = c2d(sys,0.01); % discrete G1(z) with dT=0.01

sysd2 = c2d(sys,0.1); % discrete G2(z) with dT=0.1

syscl = feedback(sys,1); % unit feedback of G(s)

sysd1cl = feedback(sysd1,1); % unit feedback of G1(z)

sysd2cl = feedback(sysd2,1); % unit feedback of G2(z)

ltiview % use lti viewer to create step responses

[numd1,dend1,Td1] = tfdata(sysd1cl); % find numerator and denominator of

% G1(z)

zerod1 = roots(numd1{1}); % Find zeros of G1(z)

poled1 = roots(dend1{1}); % Find poles of G1(z)

zplane(zerod1,poled1); % Plot zeros and poles of G1(z) in z-plane

[numd2,dend2,Td2] = tfdata(sysd2cl); % find numerator and denominator of

% G2(z)

zerod2 = roots(numd2{1}); % Find zeros of G2(z)

poled2 = roots(dend2{1}); % Find poles of G2(z)

figure;

zplane(zerod2,poled2); % Plot zeros and poles of G2(z) in z-plane

Image transcriptions

2. Use Simulink to simulate the step response of the continuous transfer function from problem 1 with unity feedback. Also simulate the discrete transfer function with a sampling rate of 0.1 with unity feedback. Finally simulate the continuous transfer function in series behind a zero-order hold with a sampling rate of 0.1 and with unity feedback. Use the scope to plot all three systems at the same time. Provide a copy of the plot and a copy of the Simulink model. Make sure the transfer function boxes are large enough to see the transfer functions.

*ac, dictum vitae odio. Donec aliquet. Lorem ipsum do*

*a. Fusce dui lectus, congue ve*

*m ipsum dolor sit amet, consec*

*sus ante, dapibu*

**502,656 students got unstuck** by Course

Hero in the last week

**Our Expert Tutors** provide step by step solutions to help you excel in your courses