How to form a matrix from a given condition?

1 view (last 30 days)
I want a 24*5 matrix which have only 1,-1,&0 values

Accepted Answer

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

More Answers (0)

Categories

Find more on Elementary Math in Help Center and File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!