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 ]

采纳的回答

Azzi Abdelmalek
Azzi Abdelmalek 2016-4-3

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Logical 的更多信息

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by