Azzera filtri
Azzera filtri

How to form a matrix from a given condition?

1 visualizzazione (ultimi 30 giorni)
I want a 24*5 matrix which have only 1,-1,&0 values

Risposta accettata

Walter Roberson
Walter Roberson il 28 Gen 2020
randi([-1 1], 24, 5)

Più risposte (0)

Categorie

Scopri di più su Multidimensional Arrays in Help Center e File Exchange

Tag

Community Treasure Hunt

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

Start Hunting!

Translated by