Control System Lab 1
Control System Lab 1
T = [0 2 4 7 10 11 14 15];
S = [0 5 8 12 15 15 16 16];
y = [0 8 9 12 35 15 32 16];
%% task1
plot(T,S);
%% task 2
plot(T,S);
xlabel('Seconds(s)');
ylabel('tempr(t)');
title('Time vs. Speed Plot');
%% task 3
t = (0:.1:2*pi)';
subplot(2,2,1)
plot(t,sin(t))
subplot(2,2,2)
plot(t,cos(t))
subplot(2,2,3)
plot(t,exp(t))
subplot(2,2,4)
plot(t,1./(1+t.^2))
%% INLAB TASK 1
t=0:0.001:10
x=exp(-1.*t)
plot(t,x,'linewidth',2);
hold on
x2=exp(-2.*t)
x3=exp(-3.*t)
x4=exp(-4.*t)
plot(t,x2,'linewidth',2);
plot(t,x3,'linewidth',2);
plot(t,x4,'linewidth',2);
title('inlab task 1');
xlabel('time');
ylabel('temprature');
hold off