How do I make a random vector with intergers?

1 visualizzazione (ultimi 30 giorni)
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?

Risposta accettata

Matt J
Matt J il 17 Mar 2017
randi([-9,9],3,1)

Più risposte (0)

Categorie

Scopri di più su Random Number Generation in Help Center e File Exchange

Prodotti

Community Treasure Hunt

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

Start Hunting!

Translated by