Monday, November 6, 2017

Radix-2 Fft Matlab Code Decimation Inwards Frequency

Radix-2 FFT Matlab code Decimation inward frequency

Hello, guys inward this post I am going to present y'all the root code for Radix-2 fft Matlab decimation inward frequency inward Matlab simulation.
Copy the below code as well as glue it into edit window of the Matlab. You Input must move enclosed
inward brackets "[ ]" E.g  [0 i iii four 5] move certain y'all tin direct whatsoever number.

% Code Page http://telecom-academy.blogspot.com
clc
clear
closed all
disp('Please enclose your input inward Bracket similar [3 ii four v 1]')
x=input('enter the sequence')
N=length(x)
s=log2(N)
for m=s-1:-1:0
for p=0:1:((2^m)-1)
for k=p:(2^(m+1)):N-1
b=x(k+1)
t=(exp(-pi*1i*p/(2^m)))
x(k+1)=b+x(k+(2^m)+1)
x(k+(2^m)+1)=(b-x(k+(2^m)+1))*t
destination
destination
destination
y=bitrevorder(x)
Reference Blog: 
www.mathworks.com

Don't forget to Share this post amongst your friends