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 ]

 採用された回答

Azzi Abdelmalek
Azzi Abdelmalek 2016 年 4 月 26 日
編集済み: Azzi Abdelmalek 2016 年 4 月 26 日

0 投票

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

その他の回答 (0 件)

カテゴリ

ヘルプ センター および File Exchange で Multidimensional Arrays についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by