How to form a matrix from a given condition?

1 Ansicht (letzte 30 Tage)
VIJAY
VIJAY am 28 Jan. 2020
Beantwortet: Walter Roberson am 28 Jan. 2020
I want a 24*5 matrix which have only 1,-1,&0 values

Akzeptierte Antwort

Walter Roberson
Walter Roberson am 28 Jan. 2020
randi([-1 1], 24, 5)

Weitere Antworten (0)

Kategorien

Mehr zu Elementary Math finden Sie in Help Center und File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by