Search Engine www.edaboard.com

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
Please help guys.. i need to perform the run and correlation property on a stream of bits that has been pseudorandomly generated. 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 (...)
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
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 (...)
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
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 (...)
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); %%%% (...)
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
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
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 (...)
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 (...)
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 (...)
generate a random bit stream. Group 6 bits into one complex symbol. The complex symbol should be one of the points in the constellation. You need to first define the constellation points and just map 6 bits into one of the constellation point. Does this answer your question? or you want to do more?
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, (...)
M getting error in following code for qpsk. Kindly have a luk @ d code. clc; close all; clear all; no_of_bits=1000; M=100; no_of_samples=20; threshold = 0.5; snr=; Tb = 1; % Bit duration fc = 3/Tb; % Carrier frequency t = linspace(0, 1, no_of_samples); t1=linspace(0, 1, no_of_samples); t2=t1/fc; inPhaseOsc = cos(2*pi*fc*t2);
hello... I have to write a matlab code for fsk transmitter. I have generated 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 (...)
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.. (...)
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
how to generate an ensemble that consists of 1000 waveforms, each containing 1000 bits,for the line codes(Unipolar,Return to Zero,AMI)
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; (...)
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
Hello everyone, I have written a matlab code for BPSK modulation. Here in the program, I have first generated 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; (...)
Ideally, random sequences should have a infinite length. But Pseudo-random (PN) sequences are finite length sequences with semi-randomness 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 (...)
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 (...)
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 (...)
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??
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