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

2 Ansichten (letzte 30 Tage)
Mukul Khandelwal
Mukul Khandelwal am 18 Dez. 2015
Kommentiert: Stephen23 am 20 Aug. 2021
  • Item one
  • Item two
  2 Kommentare
Jan
Jan am 18 Dez. 2015
Bearbeitet: Jan am 18 Dez. 2015
Item one, item two?!
Stephen23
Stephen23 am 20 Aug. 2021
X = -ones(3,4)
X = 3×4
-1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1

Melden Sie sich an, um zu kommentieren.

Akzeptierte Antwort

Jan
Jan am 18 Dez. 2015
X = repmat(-1, [3, 4])

Weitere Antworten (0)

Kategorien

Mehr zu Matrices and Arrays finden Sie in Help Center und File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by