EXP NO 1
TITLE: TO VERIFY SAMPLING THEOREM AND ALIASING EFFECT
clc;
clear all;
close all;
a=2;
F1=5;
t=0:0.001:1;
x = a*sin(2*3.142*F1*t);
subplot(2,2,1);
plot(t,x);
xlabel('Sine Wave');
ylabel('Time');
Fs=11;
n=0:0.05:1;
x= a*sin(2*3.142*F1*n);
subplot(2,2,2);
stem(n,x);
hold on
plot(n,x);
xlabel('Fs>Fmax');
ylabel('Time');
Fs=10;
n=0:0.001:1;
x= a*sin(2*3.142*F1*n);
subplot(2,2,3);
stem(n,x);
hold on
plot(n,x);
xlabel('Fs=Fmax');
ylabel('Time');
Fs=9;
n=0:0.0001:1;
x= a*sin(2*3.142*F1*n);
subplot(2,2,4);
stem(n,x);
hold on
plot(n,x);
xlabel('Fs<max');
ylabel('Time');
Thanks
ReplyDeleteThank your techfosha for practicals
ReplyDeleteclc;
ReplyDeleteclear all;
close all;
a=2;
F1=5;
t=0:0.001:1;
x = a*sin(2*3.142*F1*t);
subplot(2,2,1);
plot(t,x);
xlabel('Sine Wave');
ylabel('Time');
Fs=11;
n=0:0.05:1;
x= a*sin(2*3.142*F1*n);
subplot(2,2,2);
stem(n,x);
hold on
plot(n,x);
xlabel('Fs>Fmax');
ylabel('Time');
Fs=10;
n=0:0.001:1;
x= a*sin(2*3.142*F1*n);
subplot(2,2,3);
stem(n,x);
hold on
plot(n,x);
xlabel('Fs=Fmax');
ylabel('Time');
Fs=9;
n=0:0.0001:1;
x= a*sin(2*3.142*F1*n);
subplot(2,2,4);
stem(n,x);
hold on
plot(n,x);
xlabel('Fs<max');
ylabel('Time');