making matrices with 1 and 0
1 visualizzazione (ultimi 30 giorni)
Mostra commenti meno recenti
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
0 Commenti
Risposta accettata
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)
Vedere anche
Categorie
Scopri di più su Multidimensional Arrays in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!