Borrar filtros
Borrar filtros

Generate random number between 0 and a non-integer value

5 visualizaciones (últimos 30 días)
Matt
Matt el 11 de Sept. de 2015
Comentada: Matt el 11 de Sept. de 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?

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 Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by