Comparing between Array Elements and result matrix too
Mostrar comentarios más antiguos
hey.. i want to comparing two matrix for example
a = [ 1 2 3 4 5 6]
b = [ 1 3 2 4 5 6; 1 2 3 4 5 6; 2 2 3 4 5 6]
if elemen in matrix a same with elemen matrix b, its result
c = [1 0 0 1 1 1; 1 1 1 1 1 1; 0 1 1 1 1 1]
Do you have any suggestion ? thanks..
Respuesta aceptada
Más respuestas (0)
Categorías
Más información sobre Logical en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!