I am not quite sure how to create 5 random numbers between 0 and 10.
1 visualización (últimos 30 días)
Mostrar comentarios más antiguos
Allyson
el 13 de Feb. de 2014
Respondida: Azzi Abdelmalek
el 13 de Feb. de 2014
The question goes on to ask to create a seed and save its value to a variable named “SeedInfo” using “rng”.
0 comentarios
Respuesta aceptada
Azzi Abdelmalek
el 13 de Feb. de 2014
s(1)=rng
randi([0 10],1,5)
to get the same sequence
rng(s(1))
randi([0 10],1,5)
0 comentarios
Más respuestas (0)
Ver también
Categorías
Más información sobre Creating and Concatenating Matrices en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!