how to convert matrix to binary matrix?
4 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Firas Al-Kharabsheh
am 26 Apr. 2016
Bearbeitet: Azzi Abdelmalek
am 26 Apr. 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 ]
0 Kommentare
Akzeptierte Antwort
Azzi Abdelmalek
am 26 Apr. 2016
Bearbeitet: Azzi Abdelmalek
am 26 Apr. 2016
A_C=~~A
Or
A_C=logical(A)
0 Kommentare
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Numeric Types finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!