[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Discuss-gnuradio] generate 0s and 1s

From: Ed Criscuolo
Subject: Re: [Discuss-gnuradio] generate 0s and 1s
Date: Fri, 13 Feb 2009 08:53:17 -0500
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.0.2) Gecko/20030208 Netscape/7.02

yufeng wang wrote:
Can anyone tell me which function in Python could I use to generate a
fixed length of 0s and 1s? I know in matlab we could just use
randsrc(x, y, 0:1), while I've no idea how to implement it in Python.
Thanks for ur help!

Look at the linear shift feedback register (gr_lfsr_32k_source_s) block.
It should do what you want.

@(^.^)@  Ed

reply via email to

[Prev in Thread] Current Thread [Next in Thread]