Professional Documents
Culture Documents
Lab Tasks Answer No. 01) :-: Code in Command Window
Lab Tasks Answer No. 01) :-: Code in Command Window
PART B
clc;
clear all;
close all;
% fs=12;
PART C
clc;
clear all;
close all;
n=0:1/100:20;
x=sinc(n);
figure;
subplot(211);
stem(x);
title('In time domain');
Y=(fft(x));
subplot(212);
% axis([0,10,0,1]);
plot(abs(Y));
% axis([0,10,0,1]);
clc;
clear all;
close all;
% fs=12;
n=0:1/6:11;
x=cos(2*pi*n);