Impact-Site-Verification: dbe48ff9-4514-40fe-8cc0-70131430799e

Search This Blog

Orthogonal Code generation in CDMA using Walsh matrix in MATLAB

MATLAB Program:


Code:

clc
clear all
close all
s=input('Enter the number of codewords you want:');
if(s==1)
    z=[1];
elseif(s==2)
    z=[1 1;1 -1];
else
x=[1 1;1 -1];
z=[];
s=log(s)/log(2);
for i=1:s-1
    z=[x x;x -x];
    x=z;
end
end


No comments

Popular Posts

Followers