DSPRelated.com

Looking forward to ur suggestions 4 Matlab random generator

Started by nishubhardwaj in Matlab DSP21 years ago 3 replies

hello frnds, I have a doubt about selecting random no generating capacity of matlab. Can any one suggest me using random no generator...

hello frnds, I have a doubt about selecting random no generating capacity of matlab. Can any one suggest me using random no generator in order to randomly select an element from a the elements of the given array? for eg if the array is AR=[1,2, 3, 4 , 6] then the random number generator should be able to select any element from the AR randomly


Re: Random numbers

Started by siva prasad motamarri in Matlab DSP25 years ago

hi, u can use 'rand' function in Matlab which gives the uniform random in the range (0,1). if u want Random numbers in (-1,1)...

hi, u can use 'rand' function in Matlab which gives the uniform random in the range (0,1). if u want Random numbers in (-1,1) use 2*rand(1,20)-1 so for (-100,100) 100*(2*rand(1,20)-1); hope it will helps u. if u aren't intrested to use 'rand' fun


=?utf-8?B?UmU6IFttYXRsYWJdIFJhbmRvbSBJbnRlZ2VyIEdlbmVyYXRvciAtIFNpbXVsaW5r?=

Started by Amaren Prasanna das in Matlab DSP17 years ago

use "random number" block or "uniform random" nuber block in the "source library" of simulink. vary the param acccordingly On Fri, 13 Nov 2009...

use "random number" block or "uniform random" nuber block in the "source library" of simulink. vary the param acccordingly On Fri, 13 Nov 2009 01:03:54 +0530 wrote > Hi, How do i generate random numbers between given limits in simulink. For ex: between 25 - 30. At every sample time one of the value between 25 to 30 should be given out. (could be25, 26 , 30, 28, 25, 29, etc.,) T


random sample generation from Hyper-Erlang distribution

Started by tpkay2001 in Matlab DSP17 years ago

Dear All, my project requires me to generate random samples which follow a Hyper- Erlang distribution. How can i do this in Matlab? In my...

Dear All, my project requires me to generate random samples which follow a Hyper- Erlang distribution. How can i do this in Matlab? In my case, the Hyper-Erlang distribution consists of weighted sum of 2 erlang distributions. (very much the same as hyper exponential distirbution, which is made up of weighted sum of exponentials) Matlab is able to generate random samples from some commo...


PSD of Random Numbers using MATLAB

Started by Karthikeyan Kittappan in Matlab DSP18 years ago 1 reply

Hi, I am an Mechanical student and i am trying to generate a random rough surface (with specified ACF and Std Deviation) using 2D FIR filter...

Hi, I am an Mechanical student and i am trying to generate a random rough surface (with specified ACF and Std Deviation) using 2D FIR filter in Matlab. I come across a paper that helps me doing that. For that, first i need to generate a input sequence composed of independent random numbers {?(I,J)}. The paper says its PSD must be a constant. I used matlab to generate independent r...


How I can get initial random states from gatool

Started by Aylin Gunel in Matlab DSP18 years ago

Hi, I need to get initial random states from gatool. I know there is a check box to obtain the random states from previous run, but how can I...

Hi, I need to get initial random states from gatool. I know there is a check box to obtain the random states from previous run, but how can I can save these states for next enterence to matlab.


Introduce correlation into wireless fading channel

Started by cash...@gmail.com in Matlab DSP19 years ago

Hi experts I need to simulate wireless MIMO fading channel in both Gaussian and Rayleigh random variables. I have implemented the channel...

Hi experts I need to simulate wireless MIMO fading channel in both Gaussian and Rayleigh random variables. I have implemented the channel matrix H = h11 h12 h21 h22 where h11 h12 h21 h22 are independent Gaussian or Rayleigh random variables. Could somebody teach me how to introduce correlations among thoese random variables in terms of correlation coefficient? Thanks for any he...


random rearrangement a vector

Started by Emre ARDALI in Matlab DSP19 years ago 2 replies

Hi everybody; I want to learn about if it is possible rearrange a vector in MATLAB in a random manner. For example i have the vector=[1 3 5 8 7...

Hi everybody; I want to learn about if it is possible rearrange a vector in MATLAB in a random manner. For example i have the vector=[1 3 5 8 7 0] and i want a new vector using the vector elements but different order i.e. new_vector=[0 7 3 1 8 5 ]; this order sould be random. Any idea? I think to use "randint" to regenerate indexes then create new vector using new index order. But problem is...


Simulating a Random Signal

Started by onth...@gmail.com in Matlab DSP19 years ago

Dear all, I am working on trying to simulate a random signal of a given frequency range (say between 0 and 5000 Hz) in MATLAB. I have used...

Dear all, I am working on trying to simulate a random signal of a given frequency range (say between 0 and 5000 Hz) in MATLAB. I have used signal generator apparatus in which I just select the kind of signal output (Sine or Random) and choose a frequency range. If I was to simulate the above in MATLAB, how could I do it? I would be really grateful for any help on this. Merry Christm...


fix random rumbers

Started by Romain Govav in Matlab DSP21 years ago 2 replies

Dear all, I am writing a program within which I am genereting random normal numbers. I would like to get the same random...

Dear all, I am writing a program within which I am genereting random normal numbers. I would like to get the same random numbers from run to run. This helps me to check my program. Can anybody help me? thanks in advance Romain


How to generate Random Vectors given Covariance Matrix?

Started by Yanjun Yan in Matlab DSP23 years ago 1 reply

Hi, All: Do you know how should I generate the Random Vectors given the Covariance Matrix? Or in general, how should I...

Hi, All: Do you know how should I generate the Random Vectors given the Covariance Matrix? Or in general, how should I realize the correlation between Random variables? eg: X=[x1,x2] Covariance Matrix is[1,0.5;0.5,1] I want to generate 10


zero mean random variables

Started by mohan prasad in Matlab DSP23 years ago 1 reply

Hi, Am trying to generate complex gaussian random variables using the randn function but when I calculated the mean of those...

Hi, Am trying to generate complex gaussian random variables using the randn function but when I calculated the mean of those random variables it is not giving zero as answer.Can anyone tell why this is happening? mohan


Introduce Single Error Bit

Started by tp_viju in Matlab DSP19 years ago 1 reply

Hi, I got a program as below which generates random binary codes (Phase 1.1). After that have to add parity bit to the codes(1.2). The...

Hi, I got a program as below which generates random binary codes (Phase 1.1). After that have to add parity bit to the codes(1.2). The next step is to generate error to the code, but it generates error ( Index exceeds matrix dimensions). Y is it so and some one got the right answer? %Phase 1.1 n=10;% # of bits b=round(rand(1,n));% creates random binary code disp('Random Da...


LP filter..

Started by zkhodakaramiii in Matlab DSP19 years ago

hi colleagues... i have generated a random signal in matlab with normal distribution (my code is written below). my signal is high...

hi colleagues... i have generated a random signal in matlab with normal distribution (my code is written below). my signal is high frequency and i want to filter it to have lower frequencies at about 1/300


PRNG for dither

Started by will...@sygnvs.com in Matlab DSP19 years ago

Hi, I am currently researching dithered quantization. Does anyone know of a commonly used pseudo-random number generator that is used to...

Hi, I am currently researching dithered quantization. Does anyone know of a commonly used pseudo-random number generator that is used to produce dither signals? The application is not spefic to audio or video or images, I am just trying to compare the statistical properties of random signals which are quantized using different PRNG's to generate the dither signal. thanks, Will


Gaussian pdf

Started by rmartis80 in Matlab DSP19 years ago

Dear Sir, I am working on Gaussian random Process, where I am stuck from few days because of the following two difficulties. 1. I have...

Dear Sir, I am working on Gaussian random Process, where I am stuck from few days because of the following two difficulties. 1. I have different segments of Gaussian distributed random sequences, of which two sequences among them are templates . I need to find the joint pdf and thereby marginal pdf between a segment and the templates. And thereby the probability of the segment bei...


generating random waveform with gussian pdf

Started by altaanah2000 in Matlab DSP19 years ago 1 reply

Good day all, Want to make a program that generate a random waveform with a Gaussian pdf of zero mean and 2 Volts rms. Using vector of length...

Good day all, Want to make a program that generate a random waveform with a Gaussian pdf of zero mean and 2 Volts rms. Using vector of length 2048 and let the voltage values in the vector represent samples taken at 1millisecond intervals, so that the total duration of the signal is 2048 millisecond. plot the results waveform calculate the mean-square value of the wave form I kno...


Initial Seed Problem

Started by RIZWAN in Matlab DSP20 years ago

Hi I am working on a simulink model of bluetooth DM1 packet transmission. I have used a random generator for the input and also have used...

Hi I am working on a simulink model of bluetooth DM1 packet transmission. I have used a random generator for the input and also have used binary symmetric channel with a certain error probability. The problem is that i dont know how to specify the initial seed values for both the random generator and the symmetric channel. What can be the appropriate seed values. I have tried the s...


generate random vector with a given joint pdf

Started by tahm...@yahoo.com in Matlab DSP20 years ago

Hi all I am trying to generate a random vector (3x1) with a given multivariate probability distribution function. The joint pdf is very...

Hi all I am trying to generate a random vector (3x1) with a given multivariate probability distribution function. The joint pdf is very similar to Poisson distribution, but it is not directly convertible to Poisson. Any help on this would be highly appreciated. thanks in advance. Tahmina


PAPR calculation

Started by Sabbir Ahmed in Matlab DSP20 years ago

Dear All, I would highly appreciate if you share your thoughts on the correctness of the method for calculating PAPR value of OFDM signal as...

Dear All, I would highly appreciate if you share your thoughts on the correctness of the method for calculating PAPR value of OFDM signal as described below. I am using NRZ random bits as the random input data where the n point IFFT outputs are x1,x2..xn(complex values) for one OFDM symbol. peakpower=max(abs(x1).^2,abs(x2).^2,..abs(xn).^2) avgpower=sum((abs(x1).^2,abs(x2).^2..abs(xn).^2)/n