Effacer les filtres
Effacer les filtres

Generate random number between 0 and a non-integer value

5 vues (au cours des 30 derniers jours)
Matt
Matt le 11 Sep 2015
Commenté : Matt le 11 Sep 2015
For my project I need to generate a random number between 0 and a non-integer value (eg. 0.854, 2.534). How can I do that in Matlab?

Réponse acceptée

James Tursa
James Tursa le 11 Sep 2015
Modifié(e) : James Tursa le 11 Sep 2015
rand * your_non_integer_value
  1 commentaire
Matt
Matt le 11 Sep 2015
Fair play, and stupid me, when I think about it it is easy. Thanks!

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

En savoir plus sur Creating and Concatenating Matrices dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by