summaryrefslogtreecommitdiff
path: root/52/CH3/EX3.11/Example3_11.sce
blob: d70d6fd6599764e818d7cc4c8a52c1c57275b193 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
//Example 3.11
//Program to Compute the 8-point DFT of the following sequences 
//x1[n]=[1,0,0,0,0,1,1,1]
//x2[n]=[0,0,1,1,1,1,0,0]  
clear;
clc ;
close ;
x1=[1,0,0,0,0,1,1,1];
x2=[0,0,1,1,1,1,0,0];  
//DFT Computation
X1 = fft (x1 , -1);
X2 = fft (x2 , -1);
//Display sequences X1[k] and X2[k] in command window
disp(X1,"X1[k]=");
disp(X2,"X2[k]=");