0% found this document useful (0 votes)
32 views

Num 1 Den (1 3 2 0) G TF (Num, Den) Rlocus (G) I 1:length (K) CLTF (I) Feedback (Series (K (I), Sys), 1) Step (CLTF (I), T) TTL Hold

This MATLAB code defines a transfer function with a numerator of 1 and denominator of [1 3 2 0], plots its root locus, then uses a feedback loop with values of K from 1 to the length of K to generate closed loop transfer functions, simulates their step responses, and plots them on the same graph with the title "Step Response".

Uploaded by

crazyrmr
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
32 views

Num 1 Den (1 3 2 0) G TF (Num, Den) Rlocus (G) I 1:length (K) CLTF (I) Feedback (Series (K (I), Sys), 1) Step (CLTF (I), T) TTL Hold

This MATLAB code defines a transfer function with a numerator of 1 and denominator of [1 3 2 0], plots its root locus, then uses a feedback loop with values of K from 1 to the length of K to generate closed loop transfer functions, simulates their step responses, and plots them on the same graph with the title "Step Response".

Uploaded by

crazyrmr
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 1

Problem 2

num = 1;
den = [1 3 2 0];
g = tf(num,den)
rlocus(g);
for i = 1:length(K)
CLTF(i) = feedback(series(K(i), sys), 1)
step(CLTF(i),t);
ttl = ['Step Response'];
hold on;
end

(ii) Output Response:

You might also like