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에서 Numeric Types에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by