Borrar filtros
Borrar filtros

how to convert matrix to binary matrix?

4 visualizaciones (últimos 30 días)
Firas Al-Kharabsheh
Firas Al-Kharabsheh el 26 de Abr. de 2016
Editada: Azzi Abdelmalek el 26 de Abr. de 2016
if i have this matrix
A = [ 0 5 0 1
6 7 2 0
0 0 4 1 ]
HOW CAN I CONVERT IT TO THIS BY REPLACE THE NUMBER > 1 TO ONE LIKE A_C
A_C = [ 0 1 0 1
1 1 1 0
0 0 1 1 ]

Respuesta aceptada

Azzi Abdelmalek
Azzi Abdelmalek el 26 de Abr. de 2016
Editada: Azzi Abdelmalek el 26 de Abr. de 2016
A_C=~~A
Or
A_C=logical(A)

Más respuestas (0)

Categorías

Más información sobre Numeric Types 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!

Translated by