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);
  1 件のコメント
RoboKid
RoboKid 2013 年 11 月 10 日
Thank you Walter Roberson :)

サインインしてコメントする。

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeMatrices and Arrays についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by