how to random value?
    6 visualizaciones (últimos 30 días)
  
       Mostrar comentarios más antiguos
    
how to random value 2 until 3? example:
>> a=rand(1)
a =
    0.8833
but i want the answer 2,3 or 2,5 or 2,6, or 3. thanks
0 comentarios
Respuestas (2)
  Azzi Abdelmalek
      
      
 el 3 de Abr. de 2013
        
      Editada: Azzi Abdelmalek
      
      
 el 3 de Abr. de 2013
  
      n=3
a=rand*n  %
2 comentarios
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!