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 ]

 Akzeptierte Antwort

Azzi Abdelmalek
Azzi Abdelmalek am 26 Apr. 2016
Bearbeitet: Azzi Abdelmalek am 26 Apr. 2016

0 Stimmen

A_C=~~A
Or
A_C=logical(A)

Weitere Antworten (0)

Kategorien

Mehr zu Convert Image Type finden Sie in Hilfe-Center und File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by