0% found this document useful (0 votes)
6 views1 page

Control System Lab 1

The document outlines a control system lab with various tasks involving plotting data related to time and speed, as well as mathematical functions. It includes instructions for generating plots of exponential decay functions and cosine functions over specified intervals. The lab emphasizes the use of MATLAB for visualizing temperature and speed data through multiple subplots.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
6 views1 page

Control System Lab 1

The document outlines a control system lab with various tasks involving plotting data related to time and speed, as well as mathematical functions. It includes instructions for generating plots of exponential decay functions and cosine functions over specified intervals. The lab emphasizes the use of MATLAB for visualizing temperature and speed data through multiple subplots.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 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

legend ('\lambda_1','\lambda _2','\lambda_3','\lambda_4');


%% inlab task2
t=(0:pi/8:4.*pi);
x=cos(t);
plot(t,x,'linewidth',2);
xlabel('time');
ylabel('temprature');

You might also like