Randsample in matlab 2007

3 visualizaciones (últimos 30 días)
Cristian
Cristian el 23 de Nov. de 2012
Hello, I have a question, which is the equivalent of randsample in matlab 2007 ? I am using matlab 2012 now and this works fine, but at the university we have a 2007 license and it is not working.
I am using it like so to take a value from 1 to M. Where M can be any number possible, for example 10 billion.
i=randsample(M,1);
Thank you!

Respuesta aceptada

Azzi Abdelmalek
Azzi Abdelmalek el 23 de Nov. de 2012
Editada: Azzi Abdelmalek el 23 de Nov. de 2012
randi(1000000000,1)
  1 comentario
Cristian
Cristian el 23 de Nov. de 2012
Thank you very much.

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Startup and Shutdown en Help Center y File Exchange.

Etiquetas

Productos

Community Treasure Hunt

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

Start Hunting!

Translated by