making matrices with 1 and 0

3 vues (au cours des 30 derniers jours)
Jens Petit-jean
Jens Petit-jean le 14 Nov 2020
Commenté : Jens Petit-jean le 14 Nov 2020
Hello,
Is there a way to make this matrice or can you only type every number by yourself
-1 0
-1 0
-1 0
-1 0
-1 0
-1 0
-1 0
-1 0
-1 0
-1 0

Réponse acceptée

Ameer Hamza
Ameer Hamza le 14 Nov 2020
Modifié(e) : Ameer Hamza le 14 Nov 2020
You can use repmat()
x = [1 0]; % or [-1 0]
y = repmat(x, 10, 1)

Plus de réponses (0)

Catégories

En savoir plus sur Multidimensional 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