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

1 vue (au cours des 30 derniers jours)
Mukul Khandelwal
Mukul Khandelwal le 18 Déc 2015
Commenté : Stephen23 le 20 Août 2021
  • Item one
  • Item two
  2 commentaires
Jan
Jan le 18 Déc 2015
Modifié(e) : Jan le 18 Déc 2015
Item one, item two?!
Stephen23
Stephen23 le 20 Août 2021
X = -ones(3,4)
X = 3×4
-1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1

Connectez-vous pour commenter.

Réponse acceptée

Jan
Jan le 18 Déc 2015
X = repmat(-1, [3, 4])

Plus de réponses (0)

Catégories

En savoir plus sur Matrices and Arrays dans Help Center et File Exchange

Tags

Community Treasure Hunt

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

Start Hunting!

Translated by