Code covered by the BSD License
-
CDMA_GUI(varargin)
CDMA_GUI M-file for CDMA_GUI.fig
-
...
-
CDMA_Encode(TotalChips, ...
-
MakeSampled(Seq,Samples,Sampl...
-
MakeUnsampled(SampledSeq,Samp...
-
PNSeq (noofBits,ChipGenMethod...
Generates a PN sequence Using Linear Feedback Shift Register Method
-
RotateSeq(InSeq)
-
buttLPF(f,cutoff,n)
-
coaxTF(f,Zr,Len,b,a,Ur,Er,Sig...
-
coax_simulator(Samples,rate,t...
-
raisedCos (f,Tb,r)
Raised Cosine Filter
-
CDMA_Simulator.m
-
View all files
from
Coaxial Cable Based CDMA System Simulation
by Iftekhar Tanveer
This is a simulation of CDMA Encoding & Decoding Process using a coax channel.
|
| raisedCos (f,Tb,r)
|
function TF = raisedCos (f,Tb,r)
% Raised Cosine Filter
% f = Frequency Matrix
% Tb = Bit Period
% r = Rolloff Factor
W0 = 1/(2*Tb);
W = (r+1)*W0;
x = abs(f)*(1/(W-W0));
x = x + ((W - 2*W0)/(W-W0))*ones(size(x));
TF = cos((pi/4)*x).^2;
xx = find(abs(f) < (2*W0 - W));
for ll = xx, TF(ll) = 1;end
xx = find(abs(f) > W);
for ll = xx, TF(ll) = 0;end
|
|
Contact us at files@mathworks.com