Thanks to visit codestin.com
Credit goes to www.scribd.com

0% found this document useful (0 votes)
13 views6 pages

Assignment

Uploaded by

dasshreyan835
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)
13 views6 pages

Assignment

Uploaded by

dasshreyan835
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/ 6

Assignment 1 19/8/2024

Question- Plot Graph of Days vs temperature

Code-
Days=[1,2,3,4,5];
Tmax=[40,36,34,36,30];
Tmin=[30,31,28,26,27];

plot(Days,Tmax,'-*')
hold on
plot(Days,Tmin,'o-');
xlabel("Days");
ylabel('TM');
title("Days Vs Temperature");
legend('Tmax','Tmin');

Pg-1
Assignment 2 19/8/24
Question- Plot graph of Sin(x)
Code-
x=-pi:0.01:pi;

y=sin(x);
plot(x,y);
xlabel('x-axis');
ylabel('y-axis');

title('Ploting of sine curve');

Pg 2
Assignment 3 9/9/24
Question- Plotting of Cosine curve
Code- x=0:0.01:6*pi;
y=cos(x);

plot(x,y);
xlabel('x-axis');
ylabel('y-axis');
title('Ploting of sine curve');

Pg-3
Table of Content
S Assignment Date of Date of Page No. Teacher’s
No. Assignment Submission Signature and
Remark
Assignment 4 16/8/24
Question= Plotting of GIF and Floor function.
Code=clear;
x=linspace(-5,2,10);

y=floor(x);
stem(x,y);
hold on;
x=linspace(-5,2,10);
y=ceil(x);

stem(x,y);
title('Graph GIF and Floor Function')

Pg 4

You might also like