How to create i.i.d. random signal uniformly distributed in the interval [-3,3] ?

3 vues (au cours des 30 derniers jours)
Mohammad
Mohammad le 31 Mai 2017
Hi friends, How can I create i.i.d. random signal uniformly distributed in the interval [-3,3]? thanks a million.

Réponses (1)

Walter Roberson
Walter Roberson le 31 Mai 2017
  2 commentaires
Walter Roberson
Walter Roberson le 4 Août 2022
Modifié(e) : Walter Roberson le 4 Août 2022
rand() * 6 - 3
Though this cannot generate exactly -3 or exactly +3

Connectez-vous pour commenter.

Catégories

En savoir plus sur Random Number Generation dans Help Center et File Exchange

Produits

Community Treasure Hunt

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

Start Hunting!

Translated by