Лабораторная работа №5 (4)
.docxВиниченко Анастасия, ивт-44
Лабораторная работа №5 (4).
Исследование качества систем автоматического управления.
syms x
eq = 1 - (exp(-0.002*x)*cos(0.099*x) + 0.02*exp(-0.002*x)*sin(0.099*x));
n = 0:0.1:2000;
S1 = subs(eq, x, n);
figure(1)
hold on
plot(n, S1)
line([0 2000],[1 1]);
line([0 2000],[0.95 0.95],'Color','red','LineStyle','--');
line([0 2000],[1.05 1.05],'Color','green','LineStyle','--');
xlabel('t');
ylabel('h(t)');
f=tf([10],[1 0.4 11])
bode(f)
clear
syms x
eq = 6*(0.836307*exp(-0.833333*x) - (0.418153 + 0.00279272i)*exp((-0.75 - 12.4775i)*x)*((0.999911 -0.0133568i) + (1 + 0i)*exp((24.955i)*x)));
n = 0:0.01:10;
S1 = subs(eq, x, n);
figure()
hold on
plot(n, S1)
line([0 10],[0 0])
line([0 10],[-0.05 -0.05],'Color','red','LineStyle','--')
line([0 10],[0.05 0.05],'Color','green','LineStyle','--')
xlabel('t')
ylabel('h(t)')