jeudi 6 septembre 2018

Generating 1s and -1s in MATLAB

How do you generate a random vector consisting of only 1 and -1 in MATLAB? I am looking for a function that generates a random vector of only certain integers and not from a definite range?




Aucun commentaire:

Enregistrer un commentaire