how xor is used between two no.? or which command ?
1 visualizzazione (ultimi 30 giorni)
Mostra commenti meno recenti
Sultan Mehmood
il 14 Giu 2019
Modificato: Stephen23
il 14 Giu 2019
LL=mod(176+233,256) xor (142);
0 Commenti
Risposta accettata
Stephen23
il 14 Giu 2019
Modificato: Stephen23
il 14 Giu 2019
>> bitxor(mod(176+233,256),142)
ans = 23
Note that xor, like all logical operators in MATLAB, treats non-zero elements as true, so given that both mod(176+233,256) and 142 are non-zero we already know that the output will be false:
>> xor(mod(176+233,256),142)
ans = 0
0 Commenti
Vedere anche
Categorie
Scopri di più su Get Started with MATLAB in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!