making matrices with 1 and 0
1 次查看(过去 30 天)
显示 更早的评论
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 个评论
采纳的回答
Ameer Hamza
2020-11-14
编辑:Ameer Hamza
2020-11-14
You can use repmat()
x = [1 0]; % or [-1 0]
y = repmat(x, 10, 1)
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Operators and Elementary Operations 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!