How to form a matrix from a given condition?

1 vue (au cours des 30 derniers jours)
VIJAY
VIJAY le 28 Jan 2020
I want a 24*5 matrix which have only 1,-1,&0 values

Réponse acceptée

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

Plus de réponses (0)

Catégories

En savoir plus sur Multidimensional Arrays dans Help Center et File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by