Program Pengamatan Efek Aliasing pada Audio
clear;
clc;
Fs=16000;
t=0:1/Fs:0.25;
c=sin(2pi262t);
d=sin(2pi294t);
e=sin(2pi330t);
f=sin(2pi249t);
g=sin(2pi392t);
a=sin(2pi440t);
b=sin(2pi494t);
c1=sin(2pi523t);
nol = [zeros(size(t))];
nada1 = [c,e,c,e,f,g,g,nol,b,c1,b,c1,b,g,nol,nol];
nada2 = [c,e,c,e,f,g,g,nol,b,c1,b,c1,b,g,nol];
nada3 = [c,nol,e,nol,g,nol,f,f,g,f,e,c,f,e,c,nol];
nada4 = [c,nol,e,nol,g,nol,f,f,g,f,e,c,f,e,c];
lagu=[nada1,nada2,nada3,nada4];
sound(lagu,Fs)
plot(t,c)
plot(t,d)
plot(t,e)
plot(t,f)
plot(t,g)
plot(t,a)
plot(t,b)
plot(t,c1)
Output Program