Borrar filtros
Borrar filtros

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

1 visualización (últimos 30 días)
Mukul Khandelwal
Mukul Khandelwal el 18 de Dic. de 2015
Comentada: Stephen23 el 20 de Ag. de 2021
  • Item one
  • Item two
  2 comentarios
Jan
Jan el 18 de Dic. de 2015
Editada: Jan el 18 de Dic. de 2015
Item one, item two?!
Stephen23
Stephen23 el 20 de Ag. de 2021
X = -ones(3,4)
X = 3×4
-1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1

Iniciar sesión para comentar.

Respuesta aceptada

Jan
Jan el 18 de Dic. de 2015
X = repmat(-1, [3, 4])

Más respuestas (0)

Categorías

Más información sobre Matrices and Arrays en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by