(Solved): Q1) Given the feedback control system shown by the diagram below, write a Matlab program that simul ...
Q1) Given the feedback control system shown by the diagram below, write a Matlab program that simulates the system and supports investigating the response of the system at the output C(s) to a unity step change at the input R(s). The investigation should cover the following ranges of the proportional and integral (PI) controller gains as specified: cp 25 ? Kep? 15 with the value of Kep incremented by steps of 2.5. 80 ? K?40 with the value of K incremented by steps of 8. ci The outcome of the simulation should offer plots of the output C(s) trend with time in response to step change on R(s) for each of the combinations of the proportional and integral gains. 10 Marks R(s) + E(s). Kci 1 Ken +- S 5s + 1 C(s)
matlab code: clc; close all; clear all; %% PI Controller design G_s = tf([1],[5,1]) G = G_s %%% open loop Transfer function H = 1; %% without PI Controller T1 = feedback(G,H); %% Closed loop Transfer function without Controller %% with PI Controller