blob: b97272b79b181d0048191577c8caac697f15faeb (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
//Example 4.4
//Program to calculate Twiddle factor exponents for each stage
clear;
clc ;
close ;
N=32; //Given
//Calculation of Twiddle factor exponents for each stage
for m=1:5
disp(m,'Stage: m =');
disp(' k =');
for t=0:(2^(m-1)-1)
k=N*t/2^m;
disp(k);
end
end
|