making matrices with 1 and 0

1 visualizzazione (ultimi 30 giorni)
Jens Petit-jean
Jens Petit-jean il 14 Nov 2020
Commentato: Jens Petit-jean il 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

Risposta accettata

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

Più risposte (0)

Categorie

Scopri di più su Multidimensional Arrays in Help Center e File Exchange

Tag

Community Treasure Hunt

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

Start Hunting!

Translated by