How to add 1 into the array
이전 댓글 표시
I have an array
M =[1 0 0]
How can I add 1 into the array so the answer will be
N=[1 0 1]
If I add other 1, the answer will be
O = [1 1 0]
채택된 답변
추가 답변 (1개)
madhan ravi
2018년 12월 7일
편집: madhan ravi
2018년 12월 7일
O = M==N
카테고리
도움말 센터 및 File Exchange에서 Logical에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!