generate binary seq using MAtlab

Thread Starter

ambreen

Joined Mar 5, 2008
6
I want to generate a binary seq. of 10^5 with p(x=0)=.3 & p(x=1)=.7
encode the seq. by lempel-ziv algorithim & copression rate.
i have to write the code for phrasing & codewords of generated series which runs on Matlab.
I need help,if somebody have work on it.I have to submit my h.w tomorrow & i have been stuck on it since few days,as i am new to Matlab.

Thanks,
Ambreen
 
Top