Professional Documents
Culture Documents
Tugas PDD Nama: Adha Nim: g1b010005 1. Fungsi Cos
Tugas PDD Nama: Adha Nim: g1b010005 1. Fungsi Cos
Nama : adha
Nim : g1b010005
1. fungsi cos (t)
clc
clear all
time = [0:0.001:0.099];
x = cos(0.1*pi*(0:99));
plot(time,x)
xlabel('time (msec)')
ylabel('x(t)')
2. grafik
Fungsi tan(t)
clc
clear all
time = [0:0.001:0.099];
x = tan(0.1*pi*(0:99));
plot(time,x)
xlabel('time (msec)')
ylabel('x(t)')
b. y(t)= sin2(t)
clc
clear all
time = [0:0.001:0.099];
x = sin(0.1*pi*(0:99));
y = x.^2;
plot(time,y)
xlabel('time (msec)')
ylabel('y(t)')
c.
c. Fungsi tan(t)
clc
clear all
time = [0:0.001:0.099];
x = tan(0.1*pi*(0:99));
stem(time,x)
xlabel('time (msec)')
ylabel('x(t)')
d. y(t)=
sin(t) + cos(t)
clc
clear all
time = [0:0.001:0.099];
x = sin(0.1*pi*(0:99));
y = cos(0.1*pi*(0:99));
z = x + y;
stem (time,z)
xlabel('time (msec)')
ylabel('y(t)')
e. y(t)=
sin2(t)
clc
clear all
time = [0:0.001:0.099];
x = sin(0.1*pi*(0:99));
y = x.^2;
stem (time,y)
xlabel('time (msec)')
ylabel('y(t)')