263aPPendix b
g=im2col(f, [M,N], [M,N], 'distinct');
h=dec2bin(double(g));
[M1,N1]=size(h) ;
z=zeros (M1,N1) ;
for i=1:M1
for j=1:N1
z(i,j)= str2num(h(i,j));
end;
end;
[M2,N2] = size(z) ;
zz = reshape(z,M2*N2, 1); %parallel data
% *********** Dividing the image into blocks**********
nloops = ceil((M2*N2)/ofdm_length );
new_data = nloops*ofdm_length ;
nzeros = new_data - (M2*N2);
input_data = [zz;zeros(nzeros,1)];
input_data2 = reshape(input_data ,ofdm_length ,
nloops);
%************** transmission ON OFDM *****************
demodata1 = zeros(ofdm_length ,nloops);
peakRMS1 = zeros(ofdm_length ,nloops);
peakRMS2 = zeros(ofdm_length ,nloops);
theta0=2*pi*rand(1,nloops)-pi; % memory terms (assume
uniform)
phi=zeros(ofdm_length,nloops); % initialize CE-OFDM ...