making matrices with 1 and 0
1 view (last 30 days)
Show older comments
Jens Petit-jean
on 14 Nov 2020
Commented: Jens Petit-jean
on 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 Comments
Accepted Answer
Ameer Hamza
on 14 Nov 2020
Edited: Ameer Hamza
on 14 Nov 2020
You can use repmat()
x = [1 0]; % or [-1 0]
y = repmat(x, 10, 1)
More Answers (0)
See Also
Categories
Find more on Operators and Elementary Operations in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!