To simulate Gaussian white random process.

(This question has been removed)

2 commentaires

Stephen23
Stephen23 le 15 Oct 2020
To simulate Gaussian white random process.
Vinay Ahir on 1st of October 2020 at 15:02:
I have a system where the information arrival to the router of an IOT system is by a channel.
The arrival to this channel is according to a Gaussian white random process X(t) that is N(0, σ = 9) for 2 < t < 5, and 0 elsewhere. I need to simulate and plot 3 data sequences of such arrival, on the range t ∈ (0, 6).
Can you please help me?

Connectez-vous pour commenter.

 Réponse acceptée

Ameer Hamza
Ameer Hamza le 1 Oct 2020
You can generate the noise vector like this
t = linspace(0, 6, 100); % 100 time samples between 0 and 5
x = zeros(size(t)); % noise vector
idx = 2 < t & t < 5;
x(idx) = randn(1, nnz(idx))*9; % N(0, sigma=9)
or If you have Statistical and Machine learning toolbox
x(idx) = normrnd(0, 9, 1, nnz(idx)); % N(0, sigma=9)

Plus de réponses (0)

Catégories

En savoir plus sur Linear and Nonlinear Regression dans Centre d'aide et File Exchange

Tags

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by