How do I make a random vector with intergers?

9 visualizaciones (últimos 30 días)
James Pain
James Pain el 17 de Mzo. de 2017
Comentada: James Pain el 17 de Mzo. de 2017
Hello, I was wondering how I could make a random 3 dimensional vector in Matlab with each value being an integer between -9 to 9?

Respuesta aceptada

Matt J
Matt J el 17 de Mzo. de 2017
randi([-9,9],3,1)

Más respuestas (0)

Categorías

Más información sobre Creating and Concatenating Matrices en Help Center y File Exchange.

Productos

Community Treasure Hunt

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

Start Hunting!

Translated by