How can i create array of all -1 numbers in it?

조회 수: 1 (최근 30일)
Mukul Khandelwal
Mukul Khandelwal 2015년 12월 18일
댓글: Stephen23 2021년 8월 20일
  • Item one
  • Item two
  댓글 수: 2
Jan
Jan 2015년 12월 18일
편집: Jan 2015년 12월 18일
Item one, item two?!
Stephen23
Stephen23 2021년 8월 20일
X = -ones(3,4)
X = 3×4
-1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1

댓글을 달려면 로그인하십시오.

채택된 답변

Jan
Jan 2015년 12월 18일
X = repmat(-1, [3, 4])

추가 답변 (0개)

카테고리

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

태그

Community Treasure Hunt

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

Start Hunting!

Translated by