& 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!