Search Engine

1000 Threads found on Generate Random Bits Matlab
Do a for loop to generate N times 32-bit random numbers, and concatenate it to get your 10000 random bits. And obviously $random only works in simulation, not in real hardware.
generate a random number and do a %n operation to limit these values to a certain range. Then call the function with this value as an argument and add the values. All these can be done in one function.
I guess you CAN'T! All that you can do with logic gives you more or less PSEUDO-random sequences. True random sequence can be generated using the help of noise generator. There is an application note on the web (can't recall the magazine nor the name of the article right now, sorry) that uses Zener diode as broadband noise generator, (...)
Hi all... i'd like to generate random position of MSs in a certain area. Anyone can help me??? This is sould be easy...i've tried 'rand' function, but i didn't work. Looking forward to ur help.. thanks.
use prbs (Pseudo random-Bit Generator Source) in hspice it can generate random codes of 1/0 see maunal hspice_sa for more details ..
OK. Take into account that the above code generates uniformly distributed numbers in the range (14 bits). Regards Z
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
hi I want to know how to generate random NRZ signals in Cadence IC design tool. I want to simulate the transient output of my CDR circuit. And want to input random NRZ signal into it. Also, I want to plot the output as eye diagram. I want to know how to do above things in the Cadence IC environment. Thank you.
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
Hi there, How can I generate random output on 8bit port of PIC uC? Thanks Real random or pseudo random? A small overview in random Gomez
I want to Know Wireless Sourcecode For generate Signalling in matlab Thank Ka;...
hai, what do you mean wireless coding for signalling. generally,we generate some binary data (using randn and round/ceil) then mdulate the data (using ddmod function for digital modulation) and you can plot the waveform. in,other way you can generate waveforms using Signal Processing Toolbox Waveform Generation
Hi, try with "rand" function in C. Example: #include unsigned int result; ..... result = rand(0x1111); here it is from Keil help: The rand function returns a random number in the range 0 to +32767. The random number generator is reinitialized each time a non-zero value is passed in the seed argumen
How can i generate random number using PIC Microcntroller (16F877A OR 16F84A )
Hi Dear Frnds, How to generate random number between 44 to 55 in verilog or VHDL?
why not use sc or sv to generate random sequence?
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 (...)
hi, i have to made a project in which irequire a squre pulse data generator( random square pulses). so plz help me in that how to generate random square pulses or date generator. thnks for reading my post.:smile:
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 (...)
LFSR is the most simple pseudo random generators and it gives a psuedo-random white sequence, other techniques will generate other kind of random sequence it depends merely on the application, kind of random sequence (guassian,white ..), and PRBS length. so what do u need ?
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
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); %%%% (...)
Do you need real random number or just pseudo-random? For second case you can use LFSR to generate long sequence of looks-like-random number. Good idea is to get longer LFSR than required range of random numbers. For example, get 32-bit LFSR, shift it every time for new number for 32 bits (...)
Does anybody know where to get a matlab file that generates very close to independent random samples? If you look at the higher order statistics of rand or randn, they are not as independent as I would like them to be. Any suggestions? hi, inorder for u to generate random numbers, u could use the PN (...)
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 (...)
I need some help on a little project, and the objective is to design a sequencial machine simulating a lottery machine or lotto (I don't really know the exact word in english). the point is that I need to generate 4 numbers (4-bits each(hex)) and register them on four 8_digit_segments. I don't really know how can I generate (...)
suppose i wanna generate random data from 0 to 3 (ie, qpsk data) in matlab simulink unsing random integer generator. output should be vector form like how can i do this using simulink and how to set parameters for that . thanks in advance.
i wanted to use normrnd(mu,sigma,m,n) in order to generate random numbers from normal distribution with mean mu =0 and some standard deviation say sigma. this sigma will be used to study the effect of Kt/C noise but my matlab doesnt support statistical toolbox. Another possibilty i look is to use randn(m,n) which has mean =0 and standard (...)
how to generate random arrays from a Rayleigh distribution in matlab? random('Rayleigh',A,B....) ?wht is A,B, is the exact format if I want to generate 20 by 1 matrix?
Hi 1. you can use LFSR generate a digital serial random bit stream , I ever use it , but you should be care for how to testing it ?? --> easy implement , but not really random number , because chip reset will get the same ID .. 2. Intel use device noise and modulation a oscillator .. you can find patent on (...)
Allot of times it's like this: The random function is more likely a pseudo random function generating outputs with a certain distribution (uniform, gaussian, ...). This means that when you give the same seed, the function always gives the same outputs in the same order. The seed is the thing which makes it "random". Time, ticks since (...)
In digital system, all data is 0 or 1. Where is the source for seed of the random number generator? We have tried using meta-stable to generate the seed. You also can use RTC (real time clock) input, since each time the time input will be different. For asic without RTC, you can think about other idea about how to generae the seed in digital
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
rand() in matlab generates the uniformly distributed random numbers. But if you need highly uniformly distributed random numbers, this funciton may be not good enough. Neither the rand function in c library. You need special algorithm to generate it.
How to generate the proper I/Q data and set the matlab simulation model? That is to say,how to verify my algorithm ? That is critical.
Simulation of dependent random variables using copulas matlab is an ideal tool for running simulations that incorporate random inputs or noise. The Statistics Toolbox provides functions to create sequences of random data according to many common univariate distributions. The Toolbox also includes a few functions to (...)
-->random Number I need to generate random number on at89c51 microcontroller i.e. for the same input(+5) on same pin(P1.1)..i need to make random pin from P0.0 to P0.7, high. Please help me with the coding either in .asm or .C Thank you.
I need a random number generator written in VHDL to generate natural numbers from 0 to 15. Does anyone have anything similar to it (like any natural numbers generator) ? Any help would be much appreciated. Thanks in advance.
can anyone plz help me by telling what actually is a bpsk signal and how to generate the signal in matlab plz helppppppppp Following is ur required program.. bits_per_symbol=1 length_outbiniary_data=128; %this is amount to binary data to be transmitted,u can change it baseband_binarydata_tx = round(rand(1,length_o
1. sin((1:1000)/10) is axample code to generate a fixed frequency wave. 2. First generate random serial numbers, then filter it using the filter desiganted by yoursefl.
Some random number generates are sensitive to seed value, but an LFSR repeats the exact same sequence no matter what seed value you use (excluding that one lock-up value). The seed simply changes the sequence starting point. However, an LFSR is still very useful because it is easy to build one with an extremely long sequence. It's true that you
You can add multi-user interference effect in many ways. One of them is to generate interference as the input signal. For example generate random signal for input and generate other random signals as interference in the same way you generate the input. Then you add them up. You can add (...)
Hi dudes! I've searched the forum and googled for a while, but nothing really useful came in place. I'm looking for a few ideas that generate random noise/data, and in case of noise, a schematic to convert them to bits. Has anyone made something like this before? -izua
I need to generate random bit sequences for adding to a bitstream with a variable Bit Error Rate (e.g 10e-8, 5x10e-7, 10e-7....) I know the way to create random bit sequences but i don't know how to create with a predefined bit error rate. Could you please help me to implement it in C code. Thanks in advanced.
Hello,all I'm a final year student . And I have some problem in my project. That is how can I generate C code from matlab code to use It in my Keil ARM project! I'm analysing Spectrum of Voice signal using my PC by matlab.I my problem is : how can i generate it to C code or header file *.h and use this code to write my (...)
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 (...)
i want to generate random number from 0,1,2,3.but all this numbers are in binary.that is ,00,01,10,11.i want the vhdl code for this task.pleae help on this.
Hi, I want to generate a trellis in matlab. The constraingth length is 3 and the code is . The problem is that my outputs must be 0 or 1 or -1. As I saw in poly2trellis function the output is only positive. Can you suggest me anything? Thanks in advance. The state table is the following in cur nxt out 1 00 00 0 0 00 10
hello people can anyone tell me how to plot snr vs ber for wireless communication channels using matlab code or simulink.. i ll be gratefull