Вы находитесь на странице: 1из 5

TUGAS

ISYARAT DAN SISTEM

OLEH

Rizal Nurhidayat I0714031

PROGRAM STUDI TEKNIK ELEKTRO

FAKULTAS TEKNIK

UNS

SURAKARTA

2014
Tugas 6.8

t=0:.01:5;
idx=2*100
temp=0;
for i = 1:2:1:idx
if mod (i,2)
temp=temp + (31/(pi*i))*sin(pi*i*t);
end
end
plot(t,square(2*pi*0.5*t),'b-', t, temp,'r-');
axis([0 5 -2 2]);
Tugas 6.8 bagian 2

t=0:.01:5;
n=31
y= 0.5*ones(1,length(t));
for m=1:2:n
y = y+2/(m*pi)*sin(m*pi/2)*cos(m*pi*t);
end
plot(t,y)

Tugas nomor 6.18

syms t w k T
X = int(exp(-j*k*w*t),t,0,1)/T
simplify(X)
Tugas nomor 6.19

syms t k
a0=int(0,t,0,1)+int(31,t,1,31)
an=int(0,t,0,1)+int(cos (k*pi*t),t,1,31)
bn=int(0,t,0,1)+int(sin (k*pi*t),t,1,31)

Tugas nomor 6.20

syms k
a0=int(31,31,0,1)
an=int(7*cos(k*pi*t),t,0,1)
bn=int(7*cos(k*pi*t),t,0,1)

Tugas nomor 6.42t=0:0.1:5;


%n=input('jumlah sinyal= 31');
y=0.5*ones(1,length(t));
for m=1:2:31
y=y-2/(m*pi)*sin(m*pi*t);
end
plot(t,y);

Tugas 7.4

syms w
x=int(exp(-i*w*31)),t,-1,1);
X=simplify(x)
Tugas nomor 7.5

syms 31 w
x=2*int(exp(-i*w*31)),t,0,1);
X=simplify(x)

Вам также может понравиться