Path: news.mathworks.com!not-for-mail
From: "Gauthaman parthiban" <gauthaman.p@gmail.com>
Newsgroups: comp.soft-sys.matlab
Subject: COde help
Date: Thu, 23 Apr 2009 09:43:01 +0000 (UTC)
Organization: NIT trichy
Lines: 10
Message-ID: <gspd75$4cf$1@fred.mathworks.com>
Reply-To: "Gauthaman parthiban" <gauthaman.p@gmail.com>
NNTP-Posting-Host: webapp-02-blr.mathworks.com
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit
X-Trace: fred.mathworks.com 1240479781 4495 172.30.248.37 (23 Apr 2009 09:43:01 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Thu, 23 Apr 2009 09:43:01 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 1564842
Xref: news.mathworks.com comp.soft-sys.matlab:534895

Hi,
I want to generate random binary numbers in such a way that 
the sum of every 4th number is 1 ........like shown below
0 0 1 0          0 0 0 1           1 0 0 0              and so on continuously........

like 0 0 1 0 0 0 0 1 1 0 0 0 ........for 100 numbers
could it be done........


i have tried with randint........