필터 지우기
필터 지우기

How to form a matrix from a given condition?

조회 수: 1 (최근 30일)
VIJAY
VIJAY 2020년 1월 28일
답변: Walter Roberson 2020년 1월 28일
I want a 24*5 matrix which have only 1,-1,&0 values

채택된 답변

Walter Roberson
Walter Roberson 2020년 1월 28일
randi([-1 1], 24, 5)

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Multidimensional Arrays에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by