how to switch the value of a boolean.
Show older comments
Hi, is there any function to do the following :
a = true;
b = someFunction(a)
==> b = false
b = sumeFunction(b)
==> b = true;
thank you.
Accepted Answer
More Answers (1)
James Tursa
on 7 Sep 2012
b = ~a;
c = ~b;
Categories
Find more on Embedded Coder in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!