I want to draw settling time plot, based on zeta changes. (ST-Zeta plot)
I wrote this code for that purpose and it works well:
clc;clear;hold onwn = 1;a = wn .^ 2;for zeta = 0:0.001:1 b = 2 * wn * zeta; G = tf(a, [1 b a]); s = stepinfo(G); st = s(1).SettlingTime; plot(zeta, st, '.')end
But I guess its not very good code, and there is a better one (like some commands or options). So please help me to make it better.
Thanks in advance.
Best Answer