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.
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
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.