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

2 ビュー (過去 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 Center および File ExchangeOperators and Elementary Operations についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by