& operator without if
이전 댓글 표시
Why this rutine:
[0 0]<[1 1] & [0 0]<[-1 1]
return:
[0 1]
how work conditional operator & without if?
댓글 수: 3
Stephen23
2020년 5월 21일
These are the two inputs that you provided to the element-wise & operator:
>> [0 0]<[1 1]
ans =
1 1
>> [0 0]<[-1 1]
ans =
0 1
Are you uncertain how AND logic works? What do you expect the & operator to do?
daniel molina
2020년 5월 21일
James Tursa
2020년 5월 21일
& is the an element-wise operator.
채택된 답변
추가 답변 (0개)
카테고리
도움말 센터 및 File Exchange에서 Monte Carlo Analysis에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!