Variable order matrix with some constant value entry

조회 수: 1 (최근 30일)
RoboKid
RoboKid 2013년 11월 10일
댓글: RoboKid 2013년 11월 10일
How to make a matrix with all entries of -1 with a desired order. I want to make a matrix L= [-1 ;-1 ;-1], but size of L is another variable. i.e. I want L = -1 of size (x,y)

채택된 답변

Walter Roberson
Walter Roberson 2013년 11월 10일
L = -1 * ones(x, y);

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