how to switch the value of a boolean.
Ältere Kommentare anzeigen
Hi, is there any function to do the following :
a = true;
b = someFunction(a)
==> b = false
b = sumeFunction(b)
==> b = true;
thank you.
Akzeptierte Antwort
Weitere Antworten (1)
James Tursa
am 7 Sep. 2012
b = ~a;
c = ~b;
Kategorien
Mehr zu Simulink 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!