& operator without if
Ältere Kommentare anzeigen
Why this rutine:
[0 0]<[1 1] & [0 0]<[-1 1]
return:
[0 1]
how work conditional operator & without if?
3 Kommentare
Stephen23
am 21 Mai 2020
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
am 21 Mai 2020
James Tursa
am 21 Mai 2020
& is the an element-wise operator.
Akzeptierte Antwort
Weitere Antworten (0)
Kategorien
Mehr zu Monte Carlo Analysis finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!