How do I make a random vector with intergers?

9 Ansichten (letzte 30 Tage)
James Pain
James Pain am 17 Mär. 2017
Kommentiert: James Pain am 17 Mär. 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?

Akzeptierte Antwort

Matt J
Matt J am 17 Mär. 2017
randi([-9,9],3,1)

Weitere Antworten (0)

Kategorien

Mehr zu Creating and Concatenating Matrices finden Sie in Help Center und File Exchange

Produkte

Community Treasure Hunt

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

Start Hunting!

Translated by