C=A|B
how to merge tow matrix ?
2 次查看(过去 30 天)
显示 更早的评论
if i have tow matrix
A = [ 1 0 1 0 1 and B = [ 0 0 1 0 0
0 0 0 0 0 0 0 0 0 0
0 0 0 0 0 ] 0 0 1 0 0 ]
i need a function to merge these matrix on a new matrix but in conditions
- put in C matrix all row in A that have 1
- put in C matrix all column in B that have 1
the solution will be
C = [ 1 0 1 0 1
0 0 0 0 0
0 0 1 0 0 ]
0 个评论
采纳的回答
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Logical 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!