Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

pseudorandom binary sequence generation in MATLAB

Status
Not open for further replies.

bhzd_b

Newbie level 3
Joined
Feb 16, 2006
Messages
4
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,333
hi all
How can i generate pseudorandom Gaussian binary sequence ( comprising 1 and -1 {±1} ) with zero mean and one variation in MATLAB?
Thanks in advance
 

A binary signal cannot have a gaussian distribution, since its pdf is discrete, ie; you get two values for the probability at x=+1 and x=-1, and everywhere else it is zero.

However, you can generate a binary signal that is approx 50% of the time +1 and 50% -1, by just
y = sign(rand(1, 1000) - 0.5)

It will have variance =1 since square of each value is +1, anmd mean will be around 0.
-b
 

    bhzd_b

    Points: 2
    Helpful Answer Positive Rating
Hi
u can use LFSR (Linear Feedback Shift Register)
 

guassian distribution for binary data is not possible
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top