how to create matrix?
1 次查看(过去 30 天)
显示 更早的评论
更多回答(1 个)
Robert Brown
2021-4-18
you can specify the elements of a 3x3 matrix as follows:
>> a = [1 2 3; 4 5 6; 7 8 9]
the result will be
a =
1 2 3
4 5 6
7 8 9
with the correct order of 1's and 0's, you should be able to build the arrays you wish to have...
I hope this helps :-)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Logical 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!