www.pudn.com > jaguar2s.zip > rad2.M


function y = rad2(x,n,N,fwd) 
   
% take in 2 samples, and output 2 samples 
%perform radix four conversion on  x 
 
W = 2*pi*n/N; 
G0 = x(1) + x(2); 
G1 = x(1) - x(2); 
 
y(1) = G0; 
y(2) = fftmult(G1,W,fwd);