how to merge tow matrix ?
5 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Firas Al-Kharabsheh
el 3 de Abr. de 2016
Respondida: Azzi Abdelmalek
el 3 de Abr. de 2016
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 comentarios
Respuesta aceptada
Más respuestas (0)
Ver también
Categorías
Más información sobre Logical en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!