making matrices with 1 and 0
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
Jens Petit-jean
am 14 Nov. 2020
Kommentiert: Jens Petit-jean
am 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 Kommentare
Akzeptierte Antwort
Ameer Hamza
am 14 Nov. 2020
Bearbeitet: Ameer Hamza
am 14 Nov. 2020
You can use repmat()
x = [1 0]; % or [-1 0]
y = repmat(x, 10, 1)
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Multidimensional Arrays finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!