Download as pdf or txt
Download as pdf or txt
You are on page 1of 2

LAB 2

1.i
1.
close all, clear all
t=0:2*pi;
plot(t,sin(t))

2.
close all, clear all
t=0:0.2:2*pi;
plot(t,sin(t))

3.
close all, clear all
t=0:0.02:2*pi;
plot(t,sin(t))

4.
t = 0:0.02:2*pi;
plot(t, sin(t))
title('CT signal plot')
xlabel('t (second)')
ylabel('y(t)')

Bonifacio Reuben Josh Z., Juan Frederick A., Ocampo Lenred Roie A.

5.
t = 0:0.02:2*pi;
plot(t, sin(t))
title('CT signal plot')
xlabel('t (second)')
ylabel('y(t)')
axis([0 2*pi -1.2 1.2])

1.iii
1.
t = 0:0.2:2*pi;
plot(t, sin(t), '.')

2.
t = 0:0.2:2*pi;
plot(t, sin(t), t, sin(t), 'r.')
1.ii
1.
t = 0:0.2:2*pi;
plot(t, sin(t), t, sin(2*t))

Q1. What does r do ?


r colors the line of graph by red or
the indicator by red (or the dots and
line in the graphs will turned to color
red)

Bonifacio Reuben Josh Z., Juan Frederick A., Ocampo Lenred Roie A.

You might also like