his packet is a IS-95 baseband simulation for 1 data channel of 9.6 KBps rate.
The simulation is written for static channel and AWGN noise. The packet include:
1) Packet Builder (Viterbi Encoding, Interleaver, PN generation)
2) Modulator (RRC filter)
3) Demodulator (Matched Filter, RAKE receiver)
4) Receiver (HD or SD) (Deinterleaver, Viterbi Decoder).
You should run "Simulation.m" function that include all modules.
There is an example of how to use the LDPC encode/decode with AWGN
channel model in files .\ldpc_decode.m and .\GFq\ldpc_decode.m.
There are a few parity check matrices available in the code but
you can use other matrices provided you have enough memory to load
them. I suggest checking out matrices in Alist format available on
David MacKay s web site.You will need to have access to a MEX compiler
to be able to use a few functions written in C.
LDPC的仿真代碼
One-channel queuing system simulator (M/M/1)
* Arrival and service times are random and distributed exponetially.
*
* The simulator is time-slice-driven, i.e. the system model is being
* run at discrete time points, with constant increments deltaT.
* At each such time moment, program checks if a new item arrival or
* release has occurred during previus deltaT.