Generate random number between 0 and a non-integer value

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?

 Respuesta aceptada

James Tursa
James Tursa el 11 de Sept. de 2015
Editada: James Tursa el 11 de Sept. de 2015
rand * your_non_integer_value

1 comentario

Matt
Matt el 11 de Sept. de 2015
Fair play, and stupid me, when I think about it it is easy. Thanks!

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Creating and Concatenating Matrices en Centro de ayuda y File Exchange.

Etiquetas

Preguntada:

el 11 de Sept. de 2015

Comentada:

el 11 de Sept. de 2015

Community Treasure Hunt

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

Start Hunting!

Translated by