making matrices with 1 and 0

조회 수: 1 (최근 30일)
Jens Petit-jean
Jens Petit-jean 2020년 11월 14일
댓글: Jens Petit-jean 2020년 11월 14일
Hello,
Is there a way to make this matrice or can you only type every number by yourself
-1 0
-1 0
-1 0
-1 0
-1 0
-1 0
-1 0
-1 0
-1 0
-1 0

채택된 답변

Ameer Hamza
Ameer Hamza 2020년 11월 14일
편집: Ameer Hamza 2020년 11월 14일
You can use repmat()
x = [1 0]; % or [-1 0]
y = repmat(x, 10, 1)

추가 답변 (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