Variable order matrix with some constant value entry

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 日

0 投票

L = -1 * ones(x, y);

1 件のコメント

RoboKid
RoboKid 2013 年 11 月 10 日
Thank you Walter Roberson :)

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

その他の回答 (0 件)

カテゴリ

ヘルプ センター および File ExchangeCreating and Concatenating Matrices についてさらに検索

質問済み:

2013 年 11 月 10 日

コメント済み:

2013 年 11 月 10 日

Community Treasure Hunt

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

Start Hunting!

Translated by