Search Engine **www.edaboard.com**

## Generate Random Bits Matlab |

Are you looking for?:

generate random numbers matlab , generate random noise matlab , generate random numbers , random sequence matlab

generate random numbers matlab , generate random noise matlab , generate random numbers , random sequence matlab

27 Threads found on edaboard.com: **Generate Random Bits Matlab**

Just try this
samples=10000; %whatever number of samples you want
Z=rand(1,samples);
Z(find(Z<=0.25))=-1;
Z(find(Z>=0.75))=1;
Z(find(Z>=0.25&Z<0.5))=-j;
Z(find(Z>=0.5&Z<0.75))=j;
what u have written is for baseband i suppose.. and more over, urs doesnt strictly follow any **random** distributiom.. i mean for more valu

Digital Signal Processing :: 08.03.2005 15:10 :: cedance :: Replies: **4** :: Views: **6655**

Please help guys.. i need to perform the run and correlation property on a stream of **bits** that has been pseudo**random**ly **generate**d.
I have used the following piece of code: e.g x= randn(10,1)>0.5 to **generate** **random** **bits** of 0's and 1's. Is this the correct way of doing it or do i need to (...)

Digital communication :: 10.12.2009 10:33 :: dammadmin :: Replies: **0** :: Views: **741**

do you need a transmitter or receiver code? here is a code following you may use that code or compare your code with this one for any correction/improvement.
for more info visit
check this link also
qpsk **matlab** code
Code starts from here, visit th

PC Programming and Interfacing :: 18.02.2010 00:05 :: hanif :: Replies: **1** :: Views: **1193**

If u want to write a script then i wud suggest the following:
8PSK symbols consist of 3 **bits**
-Suppose u need to **generate** N **bits** total≈N/3 symbols
-start with taking 3 **bits** in an array at a time and compare this with (000) or (011) etc and assign the 8psksig to be equal to (x+iy) where (x,y) E {-1,0,1} depending (...)

Digital communication :: 28.04.2006 08:36 :: carpediem.td :: Replies: **14** :: Views: **18118**

Can anyone help me with coding in **matlab**??
I'm trying to **generate** PRBS and then add noise (AWGN) to it.
Then try to decode it using sequential decoding(hard decision)..
Does any1 know how to do this?
PLEASE HELP ASAP...
Thanks in advanced

Digital communication :: 18.02.2009 09:47 :: Angel_s :: Replies: **3** :: Views: **1831**

You need to:
1. **generate** **random** **bits** and store them
2. modulate them (QPSK)
3. do whatever transmit MIMO processing you have
4. send them across a channel
5. demodulate them (QPSK demod)
6. compare your demodulated **bits** to transmit **bits**; BER from monte carlo is given by (...)

Digital communication :: 26.03.2013 11:04 :: Shug :: Replies: **3** :: Views: **314**

hi guys,
when i **generate** a **random** data in **matlab** and i want to apply a lowpass filter to these data , how can i identify it's maximum frequency in order to determine the sampling frequency that i will use as an input to my filter
for example :
x=randint(1,10); %%% **random** **bits**
a=modem.pskmod(4); %%%% (...)

Digital communication :: 27.06.2013 13:07 :: bigstrik :: Replies: **0** :: Views: **191**

currently i am doing research in awg(array waveguide grating) and i am facing a problem on the transfer function of the awg as i got a pulse shape act like a multiple filter, and i dont know whether is it correct or not.
secondly is i am facing problem on the frequency spectrum of my input signal as i cant **generate** it properly in frequency spect

RF, Microwave, Antennas and Optics :: 18.10.2004 03:12 :: RO :: Replies: **0** :: Views: **850**

Hi
I guess the right thing to do is the following
1. **generate** the **random** signals, take the FFT and show its spectrum.
2. spread the signal using any code, take the FFT and show its spectrum.
3. add noise (the simplest case is AWGN), despread the signal, take the FFT and show its spectrum.
I am not sure if you did that in your figures above

Digital communication :: 13.03.2006 07:24 :: Sal :: Replies: **10** :: Views: **14931**

A direct way to check if the sequency is truly **random** is to use auto-correlation function in **matlab**. A true **random** sequence should **generate** a Dirac type auto-correlation output, whose Fourier Transform should give you 'white' spectrum density function.
In **matlab**, you can use xcorr(A), where A is your (...)

Digital Signal Processing :: 10.04.2006 18:43 :: willyboy19 :: Replies: **5** :: Views: **901**

hi everybody!i need some help with this example!!could you please somebody help me!?
1. Simulation of digital modulations
**generate** the vector of **random** **bits** (hint: you can use rand in **matlab**) . Map them according the constellation of QPSK, BPSK, 8PSK or 16QAM (selectable by the user). Filter the signals by raised (...)

Digital Signal Processing :: 29.04.2008 06:03 :: alex_pap8 :: Replies: **3** :: Views: **745**

hello everybody ! i need help with this example!!!could you please help me?!any body?!!?
1. Simulation of digital modulations
**generate** the vector of **random** **bits** (hint: you can use rand in **matlab**) . Map them according the constellation of QPSK, BPSK, 8PSK or 16QAM (selectable by the user). Filter the signals by raised (...)

Digital Signal Processing :: 29.04.2008 06:21 :: alex_pap8 :: Replies: **1** :: Views: **1871**

Digital communication :: 06.01.2010 11:10 :: srksp :: Replies: **1** :: Views: **1772**

Hi there, I have been simulating a system in **matlab**.
So Im not good with communication basics and im very new to it.
Here is the problem.
Im using rectpulse function from **matlab**, the it needs a sampling rate to **generate** rectpulse from **random** **bits**.
So the sampling rate is calculated using, (...)

Digital communication :: 27.05.2010 14:59 :: thavamaran :: Replies: **0** :: Views: **644**

How to **generate** delay in the following bit sequence using **matlab**.
My bit sequence is d(n) =
and my delay has to be d(n-1)...
What is the **matlab** code for generating delay d(n-1).
Thanx.

Digital communication :: 29.11.2011 00:08 :: Shruti01 :: Replies: **29** :: Views: **1289**

hello...
I have to write a **matlab** code for fsk transmitter. I have **generate**d a binary data sequence. Converted those **bits** into frequencies of 10000 hz and 8000 Hz. if input bit=1 ten the signal will b a cosine wave having frequency 10000 Hz and if the input bit=0 ten the signal will b a cosine wave having frequency 8000 Hz. after this wat (...)

Digital communication :: 09.01.2012 01:27 :: Shruti01 :: Replies: **2** :: Views: **2096**

Hello,
I have written a **matlab** code for ask modulation and demodulation. I have taken 1 bit at a time, modulated tat bit, added noise to it and demodulated that bit to recover the original data bit. I need to modify this code for all the **bits** present in the data sequence.... I have to repeat the above steps for 10 **bits**... How to do tat.. (...)

Digital communication :: 03.02.2012 02:24 :: Shruti01 :: Replies: **2** :: Views: **1688**

Hi all,
I need to add convolutional coding for the program below, but i dont understand what I need to the poly2trellis(ConstraintLength,CodeGenerator) variables for ConstraintLength,CodeGenerator. my messages are 10 binary **bits** long so matrix.
any help please??
clear, clc;
Eb=1;
i = 0;
trellis=poly2trellis);
for SNR=0:16
erro

Digital communication :: 06.03.2012 09:53 :: robinsjj01 :: Replies: **0** :: Views: **777**

how to **generate** an ensemble that consists of 1000 waveforms, each containing 1000 **bits**,for the line codes(Unipolar,Return to Zero,AMI)

Software Problems, Hints and Reviews :: 13.03.2012 17:15 :: comm engineer :: Replies: **0** :: Views: **466**

hello all,
i wrote this code:
N=10000; %number of data **bits**
data=randn(1,N)>=0; %**generate** uniformly distributed **random** data
Fs=20*10.7e+6; %Sampling frequency
Rb=Fs*(1/10);
Tb=1/Rb;
Fc=10.7e+6;
snrdb=10; % Eb/N0 range in dB for simulation
time_bpsk=0:(1/Fs):Tb*(length(data))-(1/Fs);
carrier=cos(2*pi*Fc*time_bpsk);
figure; (...)

Digital communication :: 01.05.2012 20:50 :: yamid :: Replies: **1** :: Views: **609**

hello all,
i tried to measure the CNR from the spectrum of a noisy carrier but the result is not precise, i get 6.6 dB attenuation from the real CNR, im sure that this is because i dont normalize something, can somebody please tell me how to do it correctly or what is the problem in my code.
my code:
N=10000; %number of data **bits**

Digital communication :: 02.05.2012 14:10 :: yamid :: Replies: **0** :: Views: **463**

Hello everyone,
I have written a **matlab** code for BPSK modulation. Here in the program, I have first **generate**d **random** binary **bits**. Modulated the **bits** with BPSK modulation. Added noise to the bpsk modulated signal. My **matlab** code is as follows:
clc;
close all;
clear all; (...)

Digital communication :: 23.08.2012 01:03 :: Shruti01 :: Replies: **1** :: Views: **473**

Ideally, **random** sequences should have a infinite length. But Pseudo-**random** (PN) sequences are finite length sequences with semi-**random**ness in the elements in sequences. Some examples are M (or maximal length)-sequence, Gold sequence. They show good but not ideal correlation properties, i.e., auto-correlation for non-zero shifts and (...)

Digital communication :: 19.05.2008 09:10 :: nalino :: Replies: **6** :: Views: **3397**

Hello everyone!
Being new to **matlab** I 've been struggling to simulate QPSK modulation for the IEEE 802.15.4 in Simulink. So, I **generate** a **random** integer number from 0-15 which in order to convert to binary i pass through a integer to bit converter block with an output of 4 **bits**. Then I want to map the output to 32 bit (...)

Digital communication :: 29.11.2009 12:56 :: todorare :: Replies: **0** :: Views: **1612**

Hi all
Can anyone tell me how to implement Serial incoming **bits** into 4 bit parallel group? I mean, I **generate** (lets say) sequence of **bits** at **random** and want to convert the sequence into group of parallel 4-**bits**. I use binary generator (Bernouli), buffer it with 4 **bits** output, pass it to (...)

Digital Signal Processing :: 21.06.2010 10:19 :: navinrk :: Replies: **5** :: Views: **1321**

Hi ...
i want to **generate** 'q' strings of 0's followed by 1 and this i want to implement using verilog.
me not getting how to implement it as output is variable number of **bits**.
can anybody help me in this to get it in veriog??

ASIC Design Methodologies and Tools (Digital) :: 13.12.2011 02:37 :: priyanka24 :: Replies: **4** :: Views: **1963**

hi sougata
1) the design i have used before can be applied for regular LDPC and also can be applied for irregular column LDPC .
2) as i remeber the any algorithm of BP can be applied for regular and irregular LDPC .
3) we didnt use cordic to over come the floating point and tanh calculation we have make our floating point representation acc

PLD, SPLD, GAL, CPLD, FPGA Design :: 26.07.2013 10:16 :: Mina Magdy :: Replies: **5** :: Views: **326**

Previous
1
Next

Last searching phrases:

hfss cpw feeding | service manual epson | cmos schmitt trigger | multiplexing pic | catapult | flow graph | sampling and delay | transistor regions | stop pins | rc5 remote 8051

hfss cpw feeding | service manual epson | cmos schmitt trigger | multiplexing pic | catapult | flow graph | sampling and delay | transistor regions | stop pins | rc5 remote 8051