Forums Search for: Random
looking for .bib in communications/elec engineering
Hi guys, not a real "matlab" question, but this group seems to be the best for random communications/DSP queries -- so here goes mine. I...
Hi guys, not a real "matlab" question, but this group seems to be the best for random communications/DSP queries -- so here goes mine. I am looking for a .bib database that is heavy with references to papers/book in communications (e.g. MIMO, channel estimation etc). Considering that all of us who write papers have to build this kind of a database, it seems sharing will reduce the pai...
BER VS DISTANCE GRAPH IN SIMULINK
Hi all, I am new to SIMULINK so can anyone please tell me how can I plot a graph of BER VS DISTANCE keeping the SNR constant in SIMULINK?...
Hi all, I am new to SIMULINK so can anyone please tell me how can I plot a graph of BER VS DISTANCE keeping the SNR constant in SIMULINK? With bertool,only ber vs snr graph can be obtained. The blocks that am using in my model are: 1. random integer generator 2.QAM modulator baseband (16-QAM) 3. AWGN channel 4. Free space path loss block 5. QAM demodulator baseband 6.E...
matrix preallocation
Hello, Can someone please show me how to optimize this bit of code in matlab. I get a warning saying, \"consider preallocating \'rect\' for...
Hello, Can someone please show me how to optimize this bit of code in matlab. I get a warning saying, \"consider preallocating \'rect\' for speed\". and the code is taking a loong time to execute. %-------------------------------------------------------------- samples = 36; m = randsrc(1,10000); % produces random -1\'s and 1\'s. rect = []; % make empty matrix to store for i = 1:length(m)...
zero padding question
I have a question that has been bugging me fo rsome time and I am hoping someone here can help me get to the bottom of it. It is a zero padding &...
I have a question that has been bugging me fo rsome time and I am hoping someone here can help me get to the bottom of it. It is a zero padding & FFT issue. Here goes; If I take 2 random signals for deconvolution (say 1000 samples and 1500 samples long with same sampling time). If I zero pad both out to 4096, take FFTs, devide one by another, then take iFFT, I get a graph of one signal deconvo...
bootstrap statistical method
Hi all, I just downloaded bstrap function in order to do bootstrap method. Does anyone have experience with this function? Essentially, what...
Hi all, I just downloaded bstrap function in order to do bootstrap method. Does anyone have experience with this function? Essentially, what I would like to do is to run the random data 100 times, average them together and take the rms value of each data point. The function is set up like this: function[res]=bstrap(b,f,fun,x,vargin) b=#of samples f=bootstrap sample size, fraction of t...
Generating correlated data with a given power spectrum.
Hi there. I'm working with realizations of random correlated data using a given power spectra (no correlation matrix is given). What I do to...
Hi there. I'm working with realizations of random correlated data using a given power spectra (no correlation matrix is given). What I do to perform such realizations is that I generate a vector of normally distributed data, calculate the fft of this vector and multiply that by the square root of the given power spectra. Then I make the ifft of this product, which I expect to represent...
FFT Frequency plot
I'm having some problems with a simple spectrum analyzer I've been designing in Matlab (with GUIDE). I'm trying to plot the single...
I'm having some problems with a simple spectrum analyzer I've been designing in Matlab (with GUIDE). I'm trying to plot the single sided Amplitude Spectrum in my GUI with some random data. The problem is the frequency mismatch in the x-scale of my axes. When I input a 1 kHz sine wave for example simulink sends an array of two colums wide. The first colomn contains the time and the second th...
random row sampling
Hi all, Suppose I have a matrix X as follows, 2 3 4 1 8 7 6 2 1 2 5 7 4 7 2 ...
Hi all, Suppose I have a matrix X as follows, 2 3 4 1 8 7 6 2 1 2 5 7 4 7 2 3 Then how should I write a code to sample two row ramdomly (called Y) from that matrix. At last, I must have two matrix; X matrix must become 2x4 (with remaining row after sampling) and Y matrix (2x4). Please help me as soon as possible. Thanks i...
Need advice on sample rate conversion
I am creating a pseudo WiMAX waveform that can be played as I/Q samples out of an arb. I've completed the framing structure and populated the...
I am creating a pseudo WiMAX waveform that can be played as I/Q samples out of an arb. I've completed the framing structure and populated the carriers with random data. I need some advice on the best way to convert a OFDM signal to the arb's faster sample rate. I have access to the Communications toolbox DSP toolbox RF toolbox I am not familiar with Simulink, so please let's j...
converting variable sampling rate to fixed rate
I am working with a signal that was sampled at a variable rate and consists of an array of values and a separate array of sample times. The...
I am working with a signal that was sampled at a variable rate and consists of an array of values and a separate array of sample times. The sample intervals are random and are not multiples of any common value. I need to convert this signal to a single array with a known, fixed sampling rate. Does anyone have suggestions as to how I would go about this? Thanks, Chris
random phase updation in matlab
hi i want to update the constellation symbol's phase in matlab without explicitly identifying the imaginary and real components for example...
hi i want to update the constellation symbol's phase in matlab without explicitly identifying the imaginary and real components for example i want to update exp(2*Pi*j) to exp(4*Pi*j) without calculating its imaginary and real components ....how can i do this in matlab Thanx
variance of Brownian motion vector in Matlab
Dear all, I have a problem computing the variance of a Brownian motion vector and matching it to the expression in Papoulis's "Probability,...
Dear all, I have a problem computing the variance of a Brownian motion vector and matching it to the expression in Papoulis's "Probability, Random Variable, and Stochastic Processes" for the variance of Brownian motion process. The code (below) results in a variance (averaged over 10000 realizations) that is approximately 2*pi smaller than what I expected from the book formula var(Brownian)...
TRAINING & SIMULATION
Hi All, I am using Matlab to construct a Neural Network. But I am getting some problem on the time of TRAINING & SIMULATION....
Hi All, I am using Matlab to construct a Neural Network. But I am getting some problem on the time of TRAINING & SIMULATION. Problem is like following:- I hve two inputs x,y. Both are random. for i=1:25 x=1+rand(1,i)*9; y=11+rand(1,i)*9; end I have one target say 'z'. 80% of total data I will train the network & 20% data for testing. Wha...
require matlab code
Hi. i require matlab code for following any random signal which is not modulate passing through awgn channel. now this noisy signal equalize by...
Hi. i require matlab code for following any random signal which is not modulate passing through awgn channel. now this noisy signal equalize by lms algorithm. obtain original signal. i did the following code; m = 3e2; x = randint(m,1);%%generate signal snr = 10; xnoisy = awgn(x,snr);%%add noise nweights = 7; stepsize = 0.5; alg = lms(stepsize);%% create lms object eqsignal = lineareq...
Re: Colored Noise in Matlab
Can anybody elaborate on this.if h(t) is the impulse response of the filter I have to send white Gaussian noise to it,in continuous domain .In...
Can anybody elaborate on this.if h(t) is the impulse response of the filter I have to send white Gaussian noise to it,in continuous domain .In matlab simulation I have to generate a vector of Gaussian random variables using randn and convolve it with the discrete filter coefficents and use each element of the output vector as one time instant value.Is it correct Thank You Rakesh > > >
Re: Colored Noise in Matlab
Hi tarang .. i need a bit more elaboration on colored noise .. can u please give a small code which can generate colored noise ?? thanx in...
Hi tarang .. i need a bit more elaboration on colored noise .. can u please give a small code which can generate colored noise ?? thanx in advance Ali Can anybody elaborate on this.if h(t) is the impulse response of the filter I have to send white Gaussian noise to it,in continuous domain .In matlab simulation I have to generate a vector of Gaussian random variables using randn and con...
A simple (maybe stupid) question :)
Hello everybody, Currently I have to generate random numbers with pdf like this: pdf(x) = a*exp( -a*(x-b) ) I just wonder can I...
Hello everybody, Currently I have to generate random numbers with pdf like this: pdf(x) = a*exp( -a*(x-b) ) I just wonder can I generate y with: pdf(y) = a*exp( -a*y ) and then let: x= y + b ? This question might be stupid. Sorry in advance ^ ^
Real Time Recurrent Neural Network Pseudocode.
Can somebody please point me to a published paper or a book where they discuss on how to readily code or implement a real time recurrent neural...
Can somebody please point me to a published paper or a book where they discuss on how to readily code or implement a real time recurrent neural network algorithm. It could be using gradient decent or discrete extended kalman filter. I need to use this for a signal estimation problem. My RTRL has one input (the input to estimate) which varies at random and one output. Please do not direct me toward...
Belief Propagation doubt
Hi all, My project involves estimating some random vector 'X=[x1,x2....xn]' using the belief propagation algorithm in Matlab. I have a doubt...
Hi all, My project involves estimating some random vector 'X=[x1,x2....xn]' using the belief propagation algorithm in Matlab. I have a doubt in the initialization part of the algorithm. It states, the initial estimate of each x, x1_hat, x2_hat...xn_hat = mean of Px(x) and var(x_hat) = var of Px(x) where Px(x) is the prior marginal distribution. Now how do I do this in Matlab? If I assume so...
Removings spikes in a data set
Hi, I am wondering is there any way to remove random spikes in the data.? If someone can help me I can send out a sample of my data set. Your...
Hi, I am wondering is there any way to remove random spikes in the data.? If someone can help me I can send out a sample of my data set. Your help is highly regarded Thanks Thisara






