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

  • Item one
  • Item two

2 Comments

Jan
Jan on 18 Dec 2015
Edited: Jan on 18 Dec 2015
Item one, item two?!
X = -ones(3,4)
X = 3×4
-1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1

Sign in to comment.

More Answers (0)

Categories

Find more on Operators and Elementary Operations in Help Center and File Exchange

Tags

Asked:

on 18 Dec 2015

Commented:

on 20 Aug 2021

Community Treasure Hunt

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

Start Hunting!