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

arrays

  • Item one
  • Item two

Best Answer

X = repmat(-1, [3, 4])